def setup_state_obj(self, fw, state):
     state.obj = network.StaticMac(
         testlib.random_mac(),
         state.eths[0],
     )
     state.parent.add(state.obj)
 def update_state_obj(self, fw, state):
     state.obj.hw_address = testlib.random_mac()
 def setup_state_obj(self, fw, state):
     state.obj = network.Arp(
         testlib.random_ip(), testlib.random_mac())
     state.parent.add(state.obj)
Exemplo n.º 4
0
 def setup_state_obj(self, fw, state):
     state.obj = network.StaticMac(
         testlib.random_mac(),
         state.eths[0],
     )
     state.parent.add(state.obj)
Exemplo n.º 5
0
 def update_state_obj(self, fw, state):
     state.obj.hw_address = testlib.random_mac()
Exemplo n.º 6
0
 def setup_state_obj(self, fw, state):
     state.obj = network.Arp(testlib.random_ip(), testlib.random_mac())
     state.parent.add(state.obj)