Ask Your Question
0

Pushing groups to switch [closed]

asked 2017-03-15 23:49:36 -0700

sunilkumarms gravatar image

updated 2017-03-15 23:53:33 -0700

I am trying to push groups to switch using restconf "http://localhost:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:217992702591811/group/1" with <group xmlns="urn:opendaylight:flow:inventory"> <group-type>group-all</group-type> <buckets> <bucket> <action> <pop-vlan-action/> <order>0</order> </action> <bucket-id>12</bucket-id> <watch_group>14</watch_group> <watch_port>1234</watch_port> </bucket> <bucket> <action> <set-field> <ipv4-source>100.1.1.1</ipv4-source> </set-field> <order>0</order> </action> <action> <set-field> <ipv4-destination>200.71.9.52</ipv4-destination> </set-field> <order>1</order> </action> <bucket-id>13</bucket-id> <watch_group>14</watch_group> <watch_port>1234</watch_port> </bucket> </buckets> <barrier>false</barrier> <group-name>Foo</group-name> <group-id>1</group-id> </group>

This is provided in opendaylight wiki this is throwing an error at the restconf level :

{ "errors": { "error": [ { "error-type": "protocol", "error-tag": "malformed-message", "error-message": "Error parsing input: Failed to parse element [ipv4-source: null] as leaf AbsoluteSchemaPath{path=[(urn:opendaylight:inventory?revision=2013-08-19)nodes, (urn:opendaylight:inventory?revision=2013-08-19)node, (urn:opendaylight:flow:inventory?revision=2013-08-19)group, (urn:opendaylight:flow:inventory?revision=2013-08-19)buckets, (urn:opendaylight:flow:inventory?revision=2013-08-19)bucket, (urn:opendaylight:flow:inventory?revision=2013-08-19)action, (urn:opendaylight:flow:inventory?revision=2013-08-19)action, (urn:opendaylight:flow:inventory?revision=2013-08-19)set-field-case, (urn:opendaylight:flow:inventory?revision=2013-08-19)set-field, (urn:opendaylight:flow:inventory?revision=2013-08-19)layer-3-match, (urn:opendaylight:flow:inventory?revision=2013-08-19)ipv4-match, (urn:opendaylight:flow:inventory?revision=2013-08-19)ipv4-source]}" } ], } }

Not sure what exactly is the problem, can somebody help me by providing the payload or some pointers would be helpful

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sunilkumarms
close date 2017-04-04 03:38:56

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-03-20 06:32:51 -0700

sunilkumarms gravatar image

Probably the XML input provided by ODL was not suitable for my use case. then i found : <group xmlns="urn:opendaylight:flow:inventory"> <group-type>group-select</group-type> <buckets> <bucket> <weight>1</weight> <action> <output-action> <output-node-connector>1</output-node-connector> </output-action> <order>1</order> </action> <bucket-id>1</bucket-id> </bucket> <bucket> <weight>1</weight> <action> <output-action> <output-node-connector>2</output-node-connector> </output-action> <order>1</order> </action> <bucket-id>2</bucket-id> </bucket> </buckets> <barrier>false</barrier> <group-name>SelectGroup</group-name> <group-id>1</group-id> </group>

edit flag offensive delete publish link more

Question Tools

Follow
1 follower

Stats

Asked: 2017-03-15 23:49:36 -0700

Seen: 18 times

Last updated: Mar 20