daemon/core/netns/nodes.py
def restorestate(self):
        ''' Restore the addresses and other interface state after using it.
        '''
        for addr in self.old_addrs:
            if addr[1] is None:
                check_call([IP_BIN, "addr", "add", addr[0], "dev",
                            self.localname])
            else:
                check_call([IP_BIN, "addr", "add", addr[0], "brd", addr[1],
                            "dev", self.localname])
        if self.old_up:
            check_call([IP_BIN, "link", "set", self.localname, "up"])
 Restore the addresses and other interface state after using it.
        
Restore the addresses and other interface state after using it.
Restore the addresses and other interface state after using it .
def restorestate(self):
        for addr in self.old_addrs:
            if addr[1] is None:
                check_call([IP_BIN, "addr", "add", addr[0], "dev",
                            self.localname])
            else:
                check_call([IP_BIN, "addr", "add", addr[0], "brd", addr[1],
                            "dev", self.localname])
        if self.old_up:
            check_call([IP_BIN, "link", "set", self.localname, "up"])
def restorestate ( self ) : for addr in self . old_addrs : if addr [ 1 ] is None : check_call ( [ IP_BIN , "addr" , "add" , addr [ 0 ] , "dev" , self . localname ] ) else : check_call ( [ IP_BIN , "addr" , "add" , addr [ 0 ] , "brd" , addr [ 1 ] , "dev" , self . localname ] ) if self . old_up : check_call ( [ IP_BIN , "link" , "set" , self . localname , "up" ] )
Restore the addresses and other interface state after using it.
Restore the addresses and other interface state after using it .
''' Restore the addresses and other interface state after using it.
        '''
self