コード例 #1
0
 def test27(self, datapath):
     self.send_table_mod(datapath)
     self.send_key_lookup(datapath)
     self.send_key_update(datapath)
     state = bebaparser.OFPExpMsgDelFlowState(
         datapath=datapath,
         keys=[0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 4, 0],
         table_id=0)
     datapath.send_msg(state)
コード例 #2
0
 def test6(self, datapath):
     self.send_table_mod(datapath)
     key_lookup_extractor = bebaparser.OFPExpMsgKeyExtract(
         datapath=datapath,
         command=bebaproto.OFPSC_EXP_SET_L_EXTRACTOR,
         fields=[ofproto.OXM_OF_ETH_SRC],
         table_id=0)
     datapath.send_msg(key_lookup_extractor)
     key_update_extractor = bebaparser.OFPExpMsgKeyExtract(
         datapath=datapath,
         command=bebaproto.OFPSC_EXP_SET_U_EXTRACTOR,
         fields=[ofproto.OXM_OF_ETH_SRC],
         table_id=0)
     datapath.send_msg(key_update_extractor)
     state = bebaparser.OFPExpMsgDelFlowState(datapath=datapath,
                                              keys=[10, 0, 0, 5],
                                              table_id=0)
     datapath.send_msg(state)
コード例 #3
0
 def test18(self, datapath):
     state = bebaparser.OFPExpMsgDelFlowState(
         datapath=datapath,
         keys=[0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 4],
         table_id=0)
     datapath.send_msg(state)