def oper_up(self): if dpdk.is_dpdk(self.name): return dpdk.is_oper_up(self.name) return bool( link.get_link(self.name)['flags'] & libnl.IfaceStatus.IFF_RUNNING)
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)
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)
def oper_up(self): if dpdk.is_dpdk(self.name): return dpdk.is_oper_up(self.name) return bool( link.get_link(self.name)['flags'] & libnl.IfaceStatus.IFF_RUNNING)
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)