381 | | |
382 | | [{"cookie":9007199254740992,"idleTimeout":5,"hardTimeout":0,"match":{"dataLayerDestination":"02:e9:c1:7d:03:c7", |
383 | | "dataLayerSource":"02:43:26:66:f8:20","dataLayerType":"0x0800","dataLayerVirtualLan":-1, |
384 | | "dataLayerVirtualLanPriorityCodePoint":0,"inputPort":7,"networkDestination":"10.42.11.37", |
385 | | "networkDestinationMaskLen":32,"networkProtocol":0,"networkSource":"10.42.11.38","networkSourceMaskLen":32, |
| 383 | [{"cookie":9007199254740992,"idleTimeout":5,"hardTimeout":0,"match":{"dataLayerDestination":"02:fc:91:ac:8d:d8", |
| 384 | "dataLayerSource":"02:3a:2d:fc:da:7a","dataLayerType":"0x0800","dataLayerVirtualLan":-1, |
| 385 | "dataLayerVirtualLanPriorityCodePoint":0,"inputPort":10,"networkDestination":"10.42.11.33", |
| 386 | "networkDestinationMaskLen":32,"networkProtocol":0,"networkSource":"10.42.11.32","networkSourceMaskLen":32, |
| 387 | "networkTypeOfService":0,"transportDestination":0,"transportSource":0,"wildcards":3145952},"durationSeconds":1259, |
| 388 | "durationNanoseconds":858000000,"packetCount":2493,"byteCount":0,"tableId":0,"actions": |
| 389 | [{"maxLength":0,"port":12,"lengthU":8,"length":8,"type":"OUTPUT"}],"priority":0}, |
| 390 | |
| 391 | {"cookie":9007199254740992,"idleTimeout":5,"hardTimeout":0,"match":{"dataLayerDestination":"02:a5:09:f2:32:bb", |
| 392 | "dataLayerSource":"02:3a:2d:fc:da:7a","dataLayerType":"0x0800","dataLayerVirtualLan":-1, |
| 393 | "dataLayerVirtualLanPriorityCodePoint":0,"inputPort":10,"networkDestination":"10.42.11.34", |
| 394 | "networkDestinationMaskLen":32,"networkProtocol":0,"networkSource":"10.42.11.32","networkSourceMaskLen":32, |
| 395 | "networkTypeOfService":0,"transportDestination":0,"transportSource":0,"wildcards":3145952},"durationSeconds":1229, |
| 396 | "durationNanoseconds":137000000,"packetCount":1222,"byteCount":0,"tableId":0,"actions": |
| 397 | [{"maxLength":0,"port":19,"lengthU":8,"length":8,"type":"OUTPUT"}],"priority":0}, |
| 398 | |
| 399 | {"cookie":9007199254740992,"idleTimeout":5,"hardTimeout":0,"match":{"dataLayerDestination":"02:3a:2d:fc:da:7a", |
| 400 | "dataLayerSource":"02:a5:09:f2:32:bb","dataLayerType":"0x0800","dataLayerVirtualLan":-1, |
| 401 | "dataLayerVirtualLanPriorityCodePoint":0,"inputPort":19,"networkDestination":"10.42.11.32", |
| 402 | "networkDestinationMaskLen":32,"networkProtocol":0,"networkSource":"10.42.11.34","networkSourceMaskLen":32, |
387 | | "durationSeconds":16,"durationNanoseconds":992000000,"packetCount":23,"byteCount":0,"tableId":0, |
388 | | "actions":[{"maxLength":0,"port":9,"lengthU":8,"length":8,"type":"OUTPUT"}],"priority":0}, |
389 | | |
390 | | {"cookie":9007199254740992,"idleTimeout":5,"hardTimeout":0,"match":{"dataLayerDestination":"02:43:26:66:f8:20", |
391 | | "dataLayerSource":"02:e9:c1:7d:03:c7","dataLayerType":"0x0800","dataLayerVirtualLan":-1, |
392 | | "dataLayerVirtualLanPriorityCodePoint":0,"inputPort":9,"networkDestination":"10.42.11.38", |
393 | | "networkDestinationMaskLen":32,"networkProtocol":0,"networkSource":"10.42.11.37","networkSourceMaskLen":32, |
394 | | "networkTypeOfService":0,"transportDestination":0,"transportSource":0,"wildcards":3145952}, |
395 | | "durationSeconds":17,"durationNanoseconds":72000000,"packetCount":23,"byteCount":0,"tableId":0, |
396 | | "actions":[{"maxLength":0,"port":7,"lengthU":8,"length":8,"type":"OUTPUT"}],"priority":0}]} |
397 | | }}} |
398 | | |
399 | | Inserted a flow modification: |
| 404 | "durationSeconds":1229,"durationNanoseconds":50000000,"packetCount":1221,"byteCount":0,"tableId":0, |
| 405 | "actions":[{"maxLength":0,"port":10,"lengthU":8,"length":8,"type":"OUTPUT"}],"priority":0}, |
| 406 | |
| 407 | {"cookie":9007199254740992,"idleTimeout":5,"hardTimeout":0,"match":{"dataLayerDestination":"02:3a:2d:fc:da:7a","dataLayerSource":"02:fc:91:ac:8d:d8","dataLayerType":"0x0800", |
| 408 | "dataLayerVirtualLan":-1,"dataLayerVirtualLanPriorityCodePoint":0,"inputPort":12,"networkDestination":"10.42.11.32", |
| 409 | "networkDestinationMaskLen":32,"networkProtocol":0,"networkSource":"10.42.11.33","networkSourceMaskLen":32, |
| 410 | "networkTypeOfService":0,"transportDestination":0,"transportSource":0,"wildcards":3145952},"durationSeconds":1259, |
| 411 | "durationNanoseconds":773000000,"packetCount":2492,"byteCount":0,"tableId":0,"actions": |
| 412 | [{"maxLength":0,"port":10,"lengthU":8,"length":8,"type":"OUTPUT"}],"priority":0}, |
| 413 | }}} |
| 414 | |
| 415 | Inserted an invalid flow modification, which was rejected. Deleted flowmod after failure: |
| 416 | {{{ |
| 417 | $ 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 |
| 418 | {"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}lnevers@mallorea:~$ |
| 419 | |
| 420 | $ 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 |
| 421 | {"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} |
| 422 | $ |
| 423 | }}} |