Software Defined Networking
1752808 Members
5853 Online
108789 Solutions
New Discussion

Re: strip_vlan json syntax

 
panluowei
Advisor

strip_vlan json syntax

Can any one tell me the json syntax for the "strip_vlan" action? (and in which document can I find all the json syntax for actions, matches, etc.)

 

Something like the flow below, but instead of setting the vlan id, I want to strip the vlan header. Thanks.

 

{

"flow": {

"priority": 30000,

"idle_timeout": 60,

"match": [

{"eth_type": "ipv4"},

{"ipv4_src": "192.168.77.1"},

{"ipv4_dst": "192.168.78.3"}

],

"instructions":[{

"apply_actions": [{

"set_field":{"vlan_vid":12}},

{"set_field":{"eth_dst":"0c:4d:e9:ba:ba:ba"}},

{"output": "19"}]}]

}

}

1 REPLY 1
panluowei
Advisor

Re: strip_vlan json syntax

I found that the list and description of actions is on the controller at  https://<host or ip addr>:8443/sdn/v2.0/models

 

It looks like the action I need is "pop_vlan": "True", but I get an error report "...not supported by device type J9643A (HP5412)".

 

So, any ideas how to push a packet that comes into the switch tagged, out an access port untagged to an end host that doesn't understand 802.1q ?

 

Thanks.