|
VBR Flowfitler update:
curl -v --user admin:adminpass -X PUT -H 'content-type: application/json' -d '{"flowfilterentry": {"seqnum": "233", "fl_name": "flowlist1", "action_type":"redirect", "priority":"3", "dscp":"55", "redirectdst":
{"vnode_name":"vBridge2", "if_name":"if1", "direction":"in", "macsrcaddr":"f0f1.f2f3.f4f5"}
}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vBridge1/flowfilters/in/flowfilterentries/233.json
- About to connect() to 127.0.0.1 port 8083 (#0)
- Trying 127.0.0.1... connected
- Connected to 127.0.0.1 (127.0.0.1) port 8083 (#0)
- Server auth using Basic with user 'admin'
> PUT /vtn-webapi/vtns/vtn1/vbridges/vBridge1/flowfilters/in/flowfilterentries/233.json HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW5wYXNz
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: 127.0.0.1:8083
> Accept: /
> content-type: application/json
> Content-Length: 227
>
< HTTP/1.1 204 No Content
< Server: Apache-Coyote/1.1
< Content-Type: application/json;charset=UTF-8
< Content-Length: 79
< Date: Fri, 12 Feb 2016 16:53:25 GMT
<
- Connection #0 to host 127.0.0.1 left intact
- Closing connection #0
FLOWLIST Update:
[root@ODC-LOCAL coordinator]# curl -v --user admin:adminpass -H 'content-type: application/json' -X PUT -d '{"flowlistentry": {"seqnum": "233","macethertype": "0x800","ipdstaddr": "10.0.0.1","ipdstaddrprefix": "32","ipsrcaddr": "10.0.0.2","ipsrcaddrprefix": "32","ipproto": "1"}}' http://127.0.0.1:8083/vtn-webapi/flowlists/flowlist1/flowlistentries/233.json
- About to connect() to 127.0.0.1 port 8083 (#0)
- Trying 127.0.0.1... connected
- Connected to 127.0.0.1 (127.0.0.1) port 8083 (#0)
- Server auth using Basic with user 'admin'
> PUT /vtn-webapi/flowlists/flowlist1/flowlistentries/233.json HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW5wYXNz
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: 127.0.0.1:8083
> Accept: /
> content-type: application/json
> Content-Length: 171
>
< HTTP/1.1 204 No Content
< Server: Apache-Coyote/1.1
< Content-Type: application/json;charset=UTF-8
< Date: Fri, 12 Feb 2016 16:54:42 GMT
<
- Connection #0 to host 127.0.0.1 left intact
- Closing connection #0
[root@ODC-LOCAL coordinator]#
[root@ODC-LOCAL coordinator]# curl -v --user admin:adminpass -H 'content-type: application/json' -X GET http://127.0.0.1:8083/vtn-webapi/flowlists/flowlist1/flowlistentries/233.json * About to connect() to 127.0.0.1 port 8083 (#0)
- Trying 127.0.0.1... connected
- Connected to 127.0.0.1 (127.0.0.1) port 8083 (#0)
- Server auth using Basic with user 'admin'
> GET /vtn-webapi/flowlists/flowlist1/flowlistentries/233.json HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW5wYXNz
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: 127.0.0.1:8083
> Accept: /
> content-type: application/json
>
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< Content-Type: application/json;charset=UTF-8
< Content-Length: 163
< Date: Fri, 12 Feb 2016 16:55:24 GMT
<
- Connection #0 to host 127.0.0.1 left intact
- Closing connection #0
{"flowlistentry":{"ipproto":"1","ipdstaddrprefix":"32","ipsrcaddr":"10.0.0.2","ipsrcaddrprefix":"32","ipdstaddr":"10.0.0.1","seqnum":"233","macethertype":"0x800"}}[root@ODC-LOCAL coordinator]
VTERMIF update:
curl -v --user admin:adminpass -X PUT -H 'content-type: application/json' -d '{"flowfilterentry": {"seqnum": "233", "fl_name": "flowlist1", "action_type":"redirect", "priority":"3", "dscp":"55", "redirectdst":
{"vnode_name":"vBridge1", "if_name":"if1", "direction":"in", "macsrcaddr":"f0f1.f2f3.f4f5"}
}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vterminals/vterm1/interfaces/if2/flowfilters/in/flowfilterentries/233.json
- About to connect() to 127.0.0.1 port 8083 (#0)
- Trying 127.0.0.1... connected
- Connected to 127.0.0.1 (127.0.0.1) port 8083 (#0)
- Server auth using Basic with user 'admin'
> PUT /vtn-webapi/vtns/vtn1/vterminals/vterm1/interfaces/if2/flowfilters/in/flowfilterentries/233.json HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW5wYXNz
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: 127.0.0.1:8083
> Accept: /
> content-type: application/json
> Content-Length: 114
>
< HTTP/1.1 204 No Content
< Server: Apache-Coyote/1.1
< Content-Type: application/json;charset=UTF-8
< Date: Fri, 12 Feb 2016 16:52:20 GMT
<
- Connection #0 to host 127.0.0.1 left intact
- Closing connection #
|