Exemplo n.º 1
0
 def get_list(self, _inuse=None):
     if _inuse == "true":
         return list(set(netinfo.all_favored_interfaces()) &
                     set(self.networks.get_all_networks_interfaces()))
     elif _inuse == "false":
         return list(set(netinfo.all_favored_interfaces()) -
                     set(self.networks.get_all_networks_interfaces()))
     elif _inuse is None:
         return list(set(netinfo.all_favored_interfaces()))
     else:
         wok_log.error("Invalid filter _inuse. _inuse: %s. Supported"
                       " options are %s" % (_inuse, 'true/false'))
         raise InvalidParameter("KCHIFACE0002E",
                                {'supported_inuse': ['true', 'false']})
Exemplo n.º 2
0
 def get_list(self, _inuse=None):
     if _inuse == "true":
         return list(
             set(netinfo.all_favored_interfaces())
             & set(self.networks.get_all_networks_interfaces()))
     elif _inuse == "false":
         return list(
             set(netinfo.all_favored_interfaces()) -
             set(self.networks.get_all_networks_interfaces()))
     elif _inuse is None:
         return list(set(netinfo.all_favored_interfaces()))
     else:
         wok_log.error("Invalid filter _inuse. _inuse: %s. Supported"
                       " options are %s" % (_inuse, 'true/false'))
         raise InvalidParameter("KCHIFACE0002E",
                                {'supported_inuse': ['true', 'false']})
Exemplo n.º 3
0
 def get_list(self):
     return list(set(netinfo.all_favored_interfaces()) -
                 set(self.networks.get_all_networks_interfaces()))
Exemplo n.º 4
0
 def get_list(self):
     return list(
         set(netinfo.all_favored_interfaces()) -
         set(self.networks.get_all_networks_interfaces()))