I am trying to add a flow entry using RYU OFCTL REST based api (ryu.readthedocs.io/en/latest/app/ofctl_rest.html) for adding flows to an OVS Switch running on mininet
RYU is running ofctl_rest and simple_switch these two applications
I am using a simple topology with one switch 3 hosts ... h1 = 10.0.0.1
h2 = 10.0.0.2
h3 = 10.0.0.3
How do i add a flow entry to block all incoming packets from host h1.
I used a json object
data={
"dpid": 1,
"cookie": 2802,
"priority": 3000,
"match":{
"nw_src": "10.0.0.1",
},
"actions": [ ]
}
But this flow entry is blocking all the pings from all the machines ...
can someone suggest how to add and IP address filtering rule in OVS using API
I tried same thing and used the command below:
Result is ok.
After inserting this rule:
I've used ofctl_rest app for this setup and first insert all necessary rules to make host reachable each other. Here is the script for inserting those rules: