Hi, My environment consists of Openstack(devstack version) with Opendaylight as a switch controller. I have two instances, running in openstack. I'm trying to add flow using MD-SAL, which blocks any communication on a specific port between openstack instances. I follow EndtoEndFlow wiki guide and flow-node-inventory spec, and try to add flow using Postman as follows:
PUT /restconf/config/opendaylight-inventory:nodes/node/openflow:257989387785286/table/0/flow/block5000 HTTP/1.1 Accept: application/xml Content-Type: application/xml Authorization: Basic YWRtaW46YWRtaW4= Cache-Control: no-cache <?xml version="1.0" encoding="UTF-8" standalone="no"?> <flow xmlns="urn:opendaylight:flow:inventory"> <priority>2</priority> <flow-name>block5000</flow-name> <match> <in-port>5000</in-port> </match> <id>block5000</id> <table_id>0</table_id> <instructions> <instruction> <order>0</order> <apply-actions> <action> <order>0</order> <drop-action/> </action> </apply-actions> </instruction> </instructions> </flow>
However, this flow doesn't block traffic between openstack running instances(I'm using netcat to emulate traffic activity between instances) When I issue GET request:
GET /restconf/config/opendaylight-inventory:nodes/node/openflow:257989387785286/table/0/ HTTP/1.1 Accept: application/xml Content-Type: application/xml Authorization: Basic YWRtaW46YWRtaW4= Cache-Control: no-cache
I can see my flow. But I'm not able to get statistics for my flow using /restconf/operational/opendaylight-inventory:nodes/node/openflow:1/table/0/ URL. Can anybody point me the problem with my flow and find out the way to get its stats? Thanks.