daemon/core/misc/xmlwriter1.py
def addChannelMembers(self, endpoints):
        '''
        Add network channel members referencing interfaces in the channel
        '''
        if isinstance(endpoints, list):
            # A list of endpoints is given. Create one channel member per endpoint
            idx = 0
            for ep in endpoints:
                self.addChannelMember(ep.type, ep.id, idx)
                idx += 1
        else:
            # A single endpoint is given. Create one channel member for the endpoint,
            # and if the endpoint is associated with a Layer 2 device port, add the
            # port as a second member
            ep = endpoints
            self.addChannelMember(ep.type, ep.id, 0)
            if ep.l2devport is not None:
                memId = "%s/%s" % (self.parent.getAttribute("id"), ep.l2devport)
                self.addChannelMember(ep.type, memId, 1)

        Add network channel members referencing interfaces in the channel
        
Add network channel members referencing interfaces in the channel
Add network channel members referencing interfaces in the channel
def addChannelMembers(self, endpoints):
        if isinstance(endpoints, list):
            idx = 0
            for ep in endpoints:
                self.addChannelMember(ep.type, ep.id, idx)
                idx += 1
        else:
            ep = endpoints
            self.addChannelMember(ep.type, ep.id, 0)
            if ep.l2devport is not None:
                memId = "%s/%s" % (self.parent.getAttribute("id"), ep.l2devport)
                self.addChannelMember(ep.type, memId, 1)
def addChannelMembers ( self , endpoints ) : if isinstance ( endpoints , list ) : idx = 0 for ep in endpoints : self . addChannelMember ( ep . type , ep . id , idx ) idx += 1 else : ep = endpoints self . addChannelMember ( ep . type , ep . id , 0 ) if ep . l2devport is not None : memId = "%s/%s" % ( self . parent . getAttribute ( "id" ) , ep . l2devport ) self . addChannelMember ( ep . type , memId , 1 )
Add network channel members referencing interfaces in the channel
Add network channel members referencing interfaces in the channel
'''
        Add network channel members referencing interfaces in the channel
        ''' # A list of endpoints is given. Create one channel member per endpoint # A single endpoint is given. Create one channel member for the endpoint, # and if the endpoint is associated with a Layer 2 device port, add the # port as a second member
self
endpoints