コード例 #1
0
 def setup_state_obj(self, fw, state):
     state.obj = network.StaticMac(
         testlib.random_mac(),
         state.eths[0],
     )
     state.parent.add(state.obj)
コード例 #2
0
 def update_state_obj(self, fw, state):
     state.obj.hw_address = testlib.random_mac()
コード例 #3
0
 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)