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)
예제 #4
0
 def setup_state_obj(self, fw, state):
     state.obj = network.StaticMac(
         testlib.random_mac(),
         state.eths[0],
     )
     state.parent.add(state.obj)
예제 #5
0
 def update_state_obj(self, fw, state):
     state.obj.hw_address = testlib.random_mac()
예제 #6
0
 def setup_state_obj(self, fw, state):
     state.obj = network.Arp(testlib.random_ip(), testlib.random_mac())
     state.parent.add(state.obj)