XML body for an arp reply flow using restconf

asked 2015-05-27 03:30:58 -0700

Rounak gravatar image

updated 2015-05-27 04:51:45 -0700

I tried writing normal flows using restconf and xml file,it works fine.. using postman. But now I am trying to use openflowplugin-nicira-extension tags in my xml file, restconf is not recognising them.

Error

Schema node "nx-arp-sha" was not found in module

<?xml version="1.0" encoding="UTF-8" standalone="no"?> <errors xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf"> <error> <error-type>application</error-type> <error-tag>unknown-element</error-tag> <error-message>Schema node "nx-arp-sha" was not found in module.</error-message> </error> </errors>

Postman

http://10.138.97.209:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/2

PUT

<?xml version="1.0" encoding="UTF-8" standalone="no"?> <flow xmlns="urn:opendaylight:flow:inventory"> <priority>512</priority> <flow-name>f2</flow-name> <match> <ethernet-match> <ethernet-type> <type>2054</type> </ethernet-type> <ethernet-destination> <address>ff:ff:ff:ff:ff:ff</address> </ethernet-destination> <ethernet-source> <address>00:00:00:00:00:01</address> </ethernet-source> </ethernet-match> </match> <id>2</id> <table_id>0</table_id> <cookie>3026418949592973313</cookie> <hard-timeout>0</hard-timeout> <idle-timeout>0</idle-timeout> <instructions> <instruction> <order>0</order> <apply-actions> <action> <order>0</order> <nx-arp-sha xmlns="urn:opendaylight:openflowplugin:extension:nicira:action"></nx-arp-sha> </action> </apply-actions> </instruction> </instructions> </flow>

reply

<?xml version="1.0" encoding="UTF-8" standalone="no"?> <errors xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf"> <error> <error-type>application</error-type> <error-tag>unknown-element</error-tag> <error-message>Schema node "nx-arp-sha" was not found in module.</error-message> </error> </errors>

edit retag flag offensive close merge delete