예제 #1
0
class InterfacesModel(object):
    def __init__(self, **kargs):
        self.conn = kargs['conn']
        self.networks = NetworksModel(**kargs)

    def get_list(self):
        return list(set(netinfo.all_favored_interfaces()) -
                    set(self.networks.get_all_networks_interfaces()))
예제 #2
0
class InterfacesModel(object):
    def __init__(self, **kargs):
        self.conn = kargs['conn']
        self.networks = NetworksModel(**kargs)

    def get_list(self):
        return list(
            set(netinfo.all_favored_interfaces()) -
            set(self.networks.get_all_networks_interfaces()))
예제 #3
0
 def __init__(self, **kargs):
     self.conn = kargs['conn']
     self.networks = NetworksModel(**kargs)
예제 #4
0
 def __init__(self, **kargs):
     self.conn = kargs['conn']
     self.networks = NetworksModel(**kargs)