daemon/core/misc/xmlwriter1.py
def addNetMembers(self, netObj):
        ''' Add members to a network XML element.
        '''

        for ep in self.endpoints:
            if ep.type:
                MemberElement(self.scenPlan, self, referencedType=ep.type, referencedId=ep.id)

                if ep.l2devport:
                    MemberElement(self.scenPlan,
                                  self,
                                  referencedType=Attrib.MembType.INTERFACE,
                                  referencedId="%s/%s" % (self.id,ep.l2devport))

        # XXX Revisit this
        # Create implied members given the network type
        if isinstance(netObj, nodes.TunnelNode):
            MemberElement(self.scenPlan,
                          self,
                          referencedType=Attrib.MembType.TUNNEL,
                          referencedId="%s/%s" % (netObj.name, netObj.name))
 Add members to a network XML element.
        
Add members to a network XML element.
Add members to a network XML element .
def addNetMembers(self, netObj):
        for ep in self.endpoints:
            if ep.type:
                MemberElement(self.scenPlan, self, referencedType=ep.type, referencedId=ep.id)
                if ep.l2devport:
                    MemberElement(self.scenPlan,
                                  self,
                                  referencedType=Attrib.MembType.INTERFACE,
                                  referencedId="%s/%s" % (self.id,ep.l2devport))
        if isinstance(netObj, nodes.TunnelNode):
            MemberElement(self.scenPlan,
                          self,
                          referencedType=Attrib.MembType.TUNNEL,
                          referencedId="%s/%s" % (netObj.name, netObj.name))
def addNetMembers ( self , netObj ) : for ep in self . endpoints : if ep . type : MemberElement ( self . scenPlan , self , referencedType = ep . type , referencedId = ep . id ) if ep . l2devport : MemberElement ( self . scenPlan , self , referencedType = Attrib . MembType . INTERFACE , referencedId = "%s/%s" % ( self . id , ep . l2devport ) ) if isinstance ( netObj , nodes . TunnelNode ) : MemberElement ( self . scenPlan , self , referencedType = Attrib . MembType . TUNNEL , referencedId = "%s/%s" % ( netObj . name , netObj . name ) )
Add members to a network XML element.
Add members to a network XML element .
''' Add members to a network XML element.
        ''' # XXX Revisit this # Create implied members given the network type
self
netObj