daemon/core/netns/nodes.py
def newnetif(self, net = None, addrlist = [], hwaddr = None,
                 ifindex = None, ifname = None):
        ''' This is called when linking with another node. Since this node
            represents an interface, we do not create another object here,
            but attach ourselves to the given network.
        '''
        self.lock.acquire()
        try:
            if ifindex is None:
                ifindex = 0
            if self.net is not None:
                raise ValueError, \
                        "RJ45 nodes support at most 1 network interface"
            self._netif[ifindex] = self
            self.node = self # PyCoreNetIf.node is self
            self.ifindex = ifindex
            if net is not None:
                self.attachnet(net)
            for addr in maketuple(addrlist):
                self.addaddr(addr)
            return ifindex
        finally:
            self.lock.release()
 This is called when linking with another node. Since this node
            represents an interface, we do not create another object here,
            but attach ourselves to the given network.
        
This is called when linking with another node. Since this node
represents an interface, we do not create another object here,
but attach ourselves to the given network.
This is called when linking with another node . Since this node represents an interface we do not create another object here but attach ourselves to the given network .
def newnetif(self, net = None, addrlist = [], hwaddr = None,
                 ifindex = None, ifname = None):
        self.lock.acquire()
        try:
            if ifindex is None:
                ifindex = 0
            if self.net is not None:
                raise ValueError, \
                        "RJ45 nodes support at most 1 network interface"
            self._netif[ifindex] = self
            self.node = self 
            self.ifindex = ifindex
            if net is not None:
                self.attachnet(net)
            for addr in maketuple(addrlist):
                self.addaddr(addr)
            return ifindex
        finally:
            self.lock.release()
def newnetif ( self , net = None , addrlist = [ ] , hwaddr = None , ifindex = None , ifname = None ) : self . lock . acquire ( ) try : if ifindex is None : ifindex = 0 if self . net is not None : raise ValueError , "RJ45 nodes support at most 1 network interface" self . _netif [ ifindex ] = self self . node = self self . ifindex = ifindex if net is not None : self . attachnet ( net ) for addr in maketuple ( addrlist ) : self . addaddr ( addr ) return ifindex finally : self . lock . release ( )
This is called when linking with another node.
This is called when linking with another node .
''' This is called when linking with another node. Since this node
            represents an interface, we do not create another object here,
            but attach ourselves to the given network.
        ''' # PyCoreNetIf.node is self
self
net
addrlist
hwaddr
ifindex
ifname