|
I observed when i create flowfilter by setting VTNSetPortSrcAction and VTNSetPortSrcAction. It is created and ping success.
While giving dumpflow in mininet it is not listed.
In log it says Flow action was ignored.
Below are the test configurations, with mininet dumpflow and attached log.
How to reproduce issue:
configuration:
Created VTN, VBR Interfaces
if1 portmapping - "tenant-name":"vtn1", "bridge-name":"vbr1", "interface-name":"if1", "node":"openflow:2", "port-name":"s2-eth1"
if2 portmapping - "tenant-name":"vtn1", "bridge-name":"vbr1", "interface-name":"if1", "node":"openflow:2", "port-name":"s2-eth1"
Flowcondition:
curl --user "admin":"admin" -H "Content-type: application/json" -X POST http://localhost:8181/restconf/operations/vtn-flow-condition:set-flow-condition -d '{"input":{"operation":"SET","present":"false","name":"cond_1","vtn-flow-match":[{"vtn-ether-match":{},"vtn-inet-match":
{"source-network":"10.0.0.1/32","destination-network":"10.0.0.3/32"}
,"index":"1"}]}}'
Flowfilter:
curl -v --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X POST http://localhost:8181/restconf/operations/vtn-flow-filter:set-flow-filter -d '{"input": { "tenant-name": "vtn1", "bridge-name": "vbr1", "interface-name": "if1", "vtn-flow-filter": [{"condition": "cond_1","index": "10", "vtn-pass-filter": {}, "vtn-flow-action": [{"order":1,"vtn-set-port-src-action":{"port":1}},{"order":2,"vtn-set-port-dst-action":{"port":3}}]}]}}'
Mininet ping between host h1 and h3:
mininet> h1 ping h3
PING 10.0.0.3 (10.0.0.3) 56(84) bytes of data.
64 bytes from 10.0.0.3: icmp_seq=1 ttl=64 time=22.9 ms
64 bytes from 10.0.0.3: icmp_seq=2 ttl=64 time=0.776 ms
Dumpflow:
mininet> dpctl dump-flows
-
-
- s1 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x7f5600000000000f, duration=8.022s, table=0, n_packets=7, n_bytes=630, idle_age=2, priority=10,in_port=2,vlan_tci=0x0000,dl_src=5a:1a:e5:19:5d:68,dl_dst=8e:f4:bd:ac:60:73 actions=output:1
cookie=0x7f56000000000010, duration=3.012s, table=0, n_packets=0, n_bytes=0, idle_age=3, priority=11,arp,in_port=1,vlan_tci=0x0000,dl_src=8e:f4:bd:ac:60:73,dl_dst=5a:1a:e5:19:5d:68 actions=output:2
cookie=0x7f5600000000000e, duration=8.039s, table=0, n_packets=6, n_bytes=588, idle_age=2, priority=13,ip,in_port=1,vlan_tci=0x0000,dl_src=8e:f4:bd:ac:60:73,dl_dst=5a:1a:e5:19:5d:68,nw_src=10.0.0.1,nw_dst=10.0.0.3 actions=output:2
- s2 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x7f5600000000000f, duration=8.031s, table=0, n_packets=7, n_bytes=630, idle_age=2, priority=10,in_port=3,vlan_tci=0x0000,dl_src=5a:1a:e5:19:5d:68,dl_dst=8e:f4:bd:ac:60:73 actions=output:1
cookie=0x7f56000000000010, duration=3.018s, table=0, n_packets=0, n_bytes=0, idle_timeout=300, idle_age=3, priority=11,arp,in_port=1,vlan_tci=0x0000,dl_src=8e:f4:bd:ac:60:73,dl_dst=5a:1a:e5:19:5d:68 actions=output:3
cookie=0x7f5600000000000e, duration=8.043s, table=0, n_packets=6, n_bytes=588, idle_timeout=300, idle_age=2, priority=13,ip,in_port=1,vlan_tci=0x0000,dl_src=8e:f4:bd:ac:60:73,dl_dst=5a:1a:e5:19:5d:68,nw_src=10.0.0.1,nw_dst=10.0.0.3 actions=output:3
- s3 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x7f5600000000000f, duration=8.038s, table=0, n_packets=7, n_bytes=630, idle_timeout=300, idle_age=2, priority=10,in_port=1,vlan_tci=0x0000,dl_src=5a:1a:e5:19:5d:68,dl_dst=8e:f4:bd:ac:60:73 actions=output:3
cookie=0x7f56000000000010, duration=3.03s, table=0, n_packets=0, n_bytes=0, idle_age=3, priority=11,arp,in_port=3,vlan_tci=0x0000,dl_src=8e:f4:bd:ac:60:73,dl_dst=5a:1a:e5:19:5d:68 actions=output:1
cookie=0x7f5600000000000e, duration=8.057s, table=0, n_packets=6, n_bytes=588, idle_age=2, priority=13,ip,in_port=3,vlan_tci=0x0000,dl_src=8e:f4:bd:ac:60:73,dl_dst=5a:1a:e5:19:5d:68,nw_src=10.0.0.1,nw_dst=10.0.0.3 actions=output:1
|