Hello,
I have been trying to install 2 wildcard rules from my controller
application and using ovs-ofctl to check if the flow rules have been
installed properly. Here is the code:
def datapath_join_callback(dpid, stats):
if dpid == 0x112233445566:
flow = {}
flow[core.NW_DST] = ipstr_to_int('10.16.0.2')
actions = [[openflow.OFPAT_OUTPUT, [0, 2]]]
inst.install_datapath_flow(dpid, flow, openflow.OFP_FLOW_PERMANENT ,
openflow.OFP_FLOW_PERMANENT, actions, None, openflow.OFP_DEFAULT_PRIORITY,
None, None)
flow = {}
flow[core.NW_DST] = ipstr_to_int('10.16.0.1')
actions = [[openflow.OFPAT_OUTPUT, [0, 1]]]
inst.install_datapath_flow(dpid, flow, openflow.OFP_FLOW_PERMANENT,
openflow.OFP_FLOW_PERMANENT, actions, None,
openflow.OFP_DEFAULT_PRIORITY , None, None)
For some reason only the second flow rule shows up when I dump flows of the
switch using ovs-ofctl. But if I change the priority of one of the rules,
both of them show up. What is going on here?
Thanks,
Dushyant