Beispiel #1
0
 def is_admin_up(self):
     properties = self.properties()
     return link.is_link_up(properties['flags'], check_oper_status=False)
Beispiel #2
0
 def is_oper_up(self):
     if self._is_dpdk_type:
         return dpdk.is_oper_up(self._dev)
     properties = self.properties()
     return link.is_link_up(properties['flags'], check_oper_status=True)
Beispiel #3
0
def is_admin_up(dev):
    return is_link_up(get_link(dev)['flags'], check_oper_status=False)
Beispiel #4
0
def is_oper_up(dev):
    return is_link_up(get_link(dev)['flags'], check_oper_status=True)
Beispiel #5
0
 def is_oper_up(self):
     properties = self.properties()
     return link.is_link_up(properties['flags'], check_oper_status=True)
Beispiel #6
0
def is_oper_up(dev):
    if dpdk.is_dpdk(dev):
        return dpdk.is_oper_up(dev)
    return is_link_up(get_link(dev)['flags'], check_oper_status=True)
Beispiel #7
0
def is_admin_up(dev):
    return is_link_up(get_link(dev)['flags'], check_oper_status=False)
Beispiel #8
0
 def is_oper_up(self):
     if self._is_dpdk_type:
         return dpdk.is_oper_up(self._dev)
     properties = self.properties()
     return link.is_link_up(properties['flags'], check_oper_status=True)
Beispiel #9
0
 def is_admin_up(self):
     properties = self.properties()
     return link.is_link_up(properties['flags'], check_oper_status=False)