Hi
If anyone have tried MPLS on OVS successfully, please check if the following 
syntax to push/pop is correct.
The reason I ask: I am trying Simon's code base that has MPLS datapth support.
After adding these flows, I could not see packets going out with labels. The 
log -vswittchd.log has error msg "Invalid arguement" while pushing or poping 
the labels. ( see below the error msg)

I wonder if I miss something obivious in the commands. 

Thanks in advance
=Senthil


  sudo ovs-ofctl add-flow vbr 
in_port=2,actions=push_mpls:0x8847,set_field:17-\>mpls_label,output:1

sudo ovs-ofctl add-flow vbr in_port=1,actions=pop_mpls:0x8000,output:2

ERROR MESSAGE in vswitchd.log:
-----------------------------------------------------------

2014-01-17T20:27:16Z|00288|dpif|WARN|system@ovs-system: execute 
push_mpls(label=0,tc=0,ttl=255,bos=1,eth_type=0x8847),2 failed (Invalid 
argument) on packet 
ip,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=00:30:88:15:23:e1,dl_dst=00:30:88:1b:a9:2b,nw_src=192.168.1.1,nw_dst=192.168.1.2,nw_proto=89,nw_tos=192,nw_ecn=0,nw_ttl=255
2014-01-17T20:27:16Z|00289|dpif|WARN|system@ovs-system: failed to put[create] 
(Invalid argument) 
skb_priority(0),in_port(3),skb_mark(0/0),eth(src=00:30:88:15:23:e1/00:00:00:00:00:00,dst=00:30:88:1b:a9:2b/00:00:00:00:00:00),eth_type(0x0800),ipv4(src=192.168.1.1/0.0.0.0,dst=192.168.1.2/0.0.0.0,proto=89/0,tos=0xc0/0xfc,ttl=255/0xff,frag=no/0xff),
 actions:push_mpls(label=0,tc=0,ttl=255,bos=1,eth_type=0x8847),2
2014-01-17T20:27:26Z|00290|ofproto|INFO|vbr: 1 flow_mods 10 s ago (1 deletes)
2014-01-17T20:34:03Z|00291|ofproto|INFO|vbr: 1 flow_mods 10 s ago (1 adds)
2014-01-17T20:37:16Z|00292|ofproto|INFO|vbr: 1 flow_mods 10 s ago (1 deletes)
2014-01-17T20:38:16Z|00293|ofproto|INFO|vbr: 2 flow_mods in the 15 s starting 
17 s ago (2 deletes)
2014-01-17T20:39:53Z|00294|ofproto|INFO|vbr: 1 flow_mods 10 s ago (1 adds)
2014-01-17T20:40:18Z|00295|dpif|WARN|system@ovs-system: execute 
pop_mpls(eth_type=0x8000),3 failed (Invalid argument) on packet 
mpls,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=00:30:88:1b:a9:2b,dl_dst=00:30:88:15:23:e1,mpls_label=27,mpls_tc=0,mpls_ttl=254,mpls_bos=0
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to