Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
unspecified
-
None
-
None
-
Operating System: All
Platform: All
-
4966
Description
ISSUE SCENARIO: When fetching the dataflows, the GET operation fails.
REPRODUCE THE BUG:
Controller:
VTN:
curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"vtn" : {"vtn_name":"vtn1","description":"test VTN" }}' http://127.0.0.1:8083/vtn-webapi/vtns.json
VBRIDGE:
curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"vbridge" : {"vbr_name":"vBridge1","controller_id":"odc","domain_id":"(DEFAULT)","description": "creating vbrif update" }}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges.json
VLANMAP:
curl -v -X POST -H 'content-type: application/json' -H 'username: admin' -H 'password: adminpass' -d '{"vlanmap" : {"vlan_id": 200 }}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vBridge1/vlanmaps.json
In Mininet vlan_script is used to ping h1 and h3
Then the GET Command with query string:
curl -v -X GET -H 'content-type: application/json' --user 'admin:adminpass' -H 'ipaddr:127.0.0.1' "http://127.0.0.1:8083/vtn-webapi/dataflows/detail?controller_id=odc&srcmacaddr=966b.3327.ad42&vlan_id=200&switch_id=openflow:1&port_name=s1-eth1"