1464 | | Inserted a flow modification, which was rejected traffic to the WAPG node pg51 (10.41.11.151). |
1465 | | {{{ |
1466 | | $ curl -d '{"switch": "06:d6:00:24:a8:5d:0b:00","name":"flow-mod-1", "cookie":"0", "match":{"dataLayerDestination":"02:e9:c1:7d:03:c7","dataLayerSource":"02:43:26:66:f8:20","dataLayerType":"0x0800", "inputPort":7,"networkDestination":"10.42.11.37","networkDestinationMaskLen":32,"networkSource":"10.42.11.38","networkSourceMaskLen":32,"action":[{"port":7,"type":"OUTPUT"}] }' http://localhost:9090/wm/staticflowentrypusher/json |
1467 | | {"success":false,"informational":false,"reasonPhrase":"Not Found","uri":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5","serverError":false,"connectorError":false,"clientError":true,"globalError":false,"redirection":false,"recoverableError":false,"name":"Not Found","error":true,"throwable":null,"description":"The server has not found anything matching the request URI","code":404} |
1468 | | $ |
1469 | | |
1470 | | $ curl -X DELETE -d '{"switch": "06:d6:00:24:a8:5d:0b:00","name":"flow-mod-1", "cookie":"0", "match":{"dataLayerDestination":"02:e9:c1:7d:03:c7","dataLayerSource":"02:43:26:66:f8:20","dataLayerType":"0x0800", "inputPort":7,"networkDestination":"10.42.11.37","networkDestinationMaskLen":32,"networkSource":"10.42.11.38","networkSourceMaskLen":32,"action":[{"port":7,"type":"OUTPUT"}] }' http://localhost:9090/wm/staticflowentrypusher/json |
1471 | | {"success":false,"informational":false,"reasonPhrase":"Not Found","uri":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5","serverError":false,"connectorError":false,"clientError":true,"globalError":false,"redirection":false,"recoverableError":false,"name":"Not Found","error":true,"throwable":null,"description":"The server has not found anything matching the request URI","code":404} |
1472 | | $ |
1473 | | }}} |
1474 | | |
| 1464 | First checked that there are no existing static flows: |
| 1465 | {{{ |
| 1466 | $ curl http://localhost:9090/wm/staticflowentrypusher/list/all/json |
| 1467 | {} |
| 1468 | }}} |
| 1469 | |
| 1470 | Set a static flow named "flow-mod-1" and checked that it was applied: |
| 1471 | |
| 1472 | {{{ |
| 1473 | $ curl -d '{"switch": "06:d6:00:24:a8:5d:0b:00", "name":"flow-mod-1", "priority":"32768", "networkSource":"10.42.13.43","active":"true", "actions":"output=2"}' http://localhost:9090/wm/staticflowentrypusher/json |
| 1474 | {"status" : "Entry pushed"} |
| 1475 | }}} |
| 1476 | |
| 1477 | Verify that the flow modification is applied: |
| 1478 | {{{ |
| 1479 | $ curl http://localhost:9090/wm/staticflowentrypusher/list/all/json |
| 1480 | {"06:d6:00:24:a8:5d:0b:00":{"flow-mod-1":{"bufferId":-1,"cookie":45035997351236006,"idleTimeout":0,"hardTimeout":0,"match":{"dataLayerDestination":"00:00:00:00:00:00","dataLayerSource":"00:00:00:00:00:00","dataLayerType":"0x0000","dataLayerVirtualLan":-1,"dataLayerVirtualLanPriorityCodePoint":0,"inputPort":0,"networkDestination":"0.0.0.0","networkDestinationMaskLen":0,"networkProtocol":0,"networkSource":"0.0.0.0","networkSourceMaskLen":0,"networkTypeOfService":0,"transportDestination":0,"transportSource":0,"wildcards":4194303},"command":0,"outPort":-1,"actions":[{"maxLength":32767,"port":2,"lengthU":8,"length":8,"type":"OUTPUT"}],"priority":-32768,"flags":0,"lengthU":80,"xid":0,"length":80,"type":"FLOW_MOD","version":1} |
| 1481 | }}} |