Ejemplo n.º 1
0
 def test_add_additional_interface_properties_ignores_loopback_mac(self):
     interface = {}
     _add_additional_interface_properties(
         interface, "link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00"
     )
     self.assertThat(interface, Equals({}))
Ejemplo n.º 2
0
 def test_add_additional_interface_properties_adds_mac_address(self):
     interface = {}
     _add_additional_interface_properties(
         interface, "link/ether 80:fa:5c:0d:43:5e brd ff:ff:ff:ff:ff:ff"
     )
     self.assertThat(interface, Equals({"mac": "80:fa:5c:0d:43:5e"}))