Hi,
   I'm trying to match the following rule:
 cookie=0x1, duration=10.535s, table=1, n_packets=0, n_bytes=0, 
udp,in_port=ens256 
actions=strip_vlan,load:0x5056a22099->NXM_OF_ETH_SRC[],load:0xa03555c->NXM_OF_IP_SRC[],load:0x135f1ab800->NXM_OF_ETH_DST[],output:ens192
   Using ryu proto >= 1.4
   I create o postman collection (body bellow) but I cannot get the 
strip_vlan/pop_vlan. I believe I match the eth_src, ip_src & eth_dst. The new 
rule is:
 cookie=0x0, duration=2.984s, table=1, n_packets=0, n_bytes=0, 
priority=0,ip,in_port=ens256,vlan_tci=0x1000/0x1000 
actions=mod_dl_src:00:50:56:a2:20:99,mod_dl_dst:00:13:5f:1a:b8:00,mod_nw_src:10.3.85.92,output:ens192
   and it is missing the pop_vlan. In the ryu console logs I can see that the 
pop vlan is present :
10.1.199.154 - - [17/Jul/2020 09:16:00] "POST /stats/flowentry/add HTTP/1.1" 
200 139 0.003628Sending message with xid(60f980a8) to 
datapath(0000005056a22099): 
version=None,msg_type=None,msg_len=None,xid=0x60f980a8,OFPFlowMod(buffer_id=4294967295,command=0,cookie=0,cookie_mask=0,flags=0,hard_timeout=0,idle_timeout=0,importance=0,instructions=[OFPInstructionActions(actions=[OFPActionPopVlan(len=8,type=18),
 OFPActionOutput(len=16,max_len=65509,port=1,type=0)],type=3), 
OFPInstructionActions(actions=[OFPActionSetField(eth_src_nxm='00:50:56:a2:20:99'),
 OFPActionSetField(eth_dst_nxm='00:13:5f:1a:b8:00'), 
OFPActionSetField(ipv4_src='10.3.85.92'), 
OFPActionOutput(len=16,max_len=65509,port=1,type=0)],type=4)],match=OFPMatch(oxm_fields={'in_port':
 2, 'eth_type': 2048, 'vlan_vid': (4096, 
4096)}),out_group=4294967295,out_port=4294967295,priority=0,table_id=1)

   Any suggestions on how to add the strip/pop vlan ?
   Thx.
BR,Dan S.
{    "dpid": {{ovsSwitch}},    "table_id": 1,    "match":{        "in_port": 2, 
       "vlan_vid": "0x1000/0x1000",        "dl_type": 2048    },    
"instructions": [        {            "type": "WRITE_ACTIONS",            
"actions": [                {"type": "POP_VLAN", "ethertype": 33024},           
     { "type":"OUTPUT", "port": 1}            ]        },        {            
"type": "APPLY_ACTIONS",            "actions": [                {"type": 
"SET_FIELD", "field": "eth_src_nxm", "value": "{{outEthMac}}"},                
{"type": "SET_FIELD", "field": "eth_dst_nxm", "value": "{{gatewayMac}}"},       
         {"type": "SET_FIELD", "field": "ipv4_src", "value": "{{ipv4Src}}"},    
            {"type": "OUTPUT", "port": 1}            ]        }    ]}





_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to