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()))
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()))
def __init__(self, **kargs): self.conn = kargs['conn'] self.networks = NetworksModel(**kargs)