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