Exemple #1
0
 def is_bond(self, devname: DeviceName) -> bool:
     return net.is_bond(devname)
Exemple #2
0
 def test_is_bond(self):
     """is_bond is True when /sys/net/devname/bonding exists."""
     self.assertFalse(net.is_bond('eth0'))
     ensure_file(os.path.join(self.sysdir, 'eth0', 'bonding'))
     self.assertTrue(net.is_bond('eth0'))
Exemple #3
0
 def test_is_bond(self):
     """is_bond is True when /sys/net/devname/bonding exists."""
     self.assertFalse(net.is_bond('eth0'))
     ensure_file(os.path.join(self.sysdir, 'eth0', 'bonding'))
     self.assertTrue(net.is_bond('eth0'))