367 lines
16 KiB
JSON
367 lines
16 KiB
JSON
[
|
|
"action: set_field: 30_ICMPV6_CODE",
|
|
{
|
|
"description": "ethernet/ipv6/icmpv6(code=0)-->'icmpv6_code=0,actions=set_field:1->icmpv6_code,output:2'",
|
|
"prerequisite":[
|
|
{
|
|
"OFPFlowMod":{
|
|
"table_id":0,
|
|
"match":{
|
|
"OFPMatch":{
|
|
"oxm_fields":[
|
|
{
|
|
"OXMTlv":{
|
|
"field":"eth_type",
|
|
"value":34525
|
|
}
|
|
},
|
|
{
|
|
"OXMTlv":{
|
|
"field":"ip_proto",
|
|
"value":58
|
|
}
|
|
},
|
|
{
|
|
"OXMTlv":{
|
|
"field":"icmpv6_code",
|
|
"value":0
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"instructions":[
|
|
{
|
|
"OFPInstructionActions":{
|
|
"actions":[
|
|
{
|
|
"OFPActionSetField":{
|
|
"field":{
|
|
"OXMTlv":{
|
|
"field":"icmpv6_code",
|
|
"value":1
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"OFPActionOutput":{
|
|
"port":2
|
|
}
|
|
}
|
|
],
|
|
"type":4
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"tests":[
|
|
{
|
|
"ingress":[
|
|
"ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
|
|
"ipv6(dst='20::20', flow_label=100, src='10::10', nxt=58, hop_limit=64, traffic_class=32)",
|
|
"icmpv6(code=0,data=icmpv6echo(data=b'\\x00\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f !\"#$%&\\'()*+,-./0123'),type_=128)"
|
|
],
|
|
"egress":[
|
|
"ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
|
|
"ipv6(dst='20::20', flow_label=100, src='10::10', nxt=58, hop_limit=64, traffic_class=32)",
|
|
"icmpv6(code=1,data=icmpv6echo(data=b'\\x00\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f !\"#$%&\\'()*+,-./0123'),type_=128)"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "ethernet/vlan/ipv6/icmpv6(code=0)-->'icmpv6_code=0,actions=set_field:1->icmpv6_code,output:2'",
|
|
"prerequisite":[
|
|
{
|
|
"OFPFlowMod":{
|
|
"table_id":0,
|
|
"match":{
|
|
"OFPMatch":{
|
|
"oxm_fields":[
|
|
{
|
|
"OXMTlv":{
|
|
"field":"eth_type",
|
|
"value":34525
|
|
}
|
|
},
|
|
{
|
|
"OXMTlv":{
|
|
"field":"ip_proto",
|
|
"value":58
|
|
}
|
|
},
|
|
{
|
|
"OXMTlv":{
|
|
"field":"icmpv6_code",
|
|
"value":0
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"instructions":[
|
|
{
|
|
"OFPInstructionActions":{
|
|
"actions":[
|
|
{
|
|
"OFPActionSetField":{
|
|
"field":{
|
|
"OXMTlv":{
|
|
"field":"icmpv6_code",
|
|
"value":1
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"OFPActionOutput":{
|
|
"port":2
|
|
}
|
|
}
|
|
],
|
|
"type":4
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"tests":[
|
|
{
|
|
"ingress":[
|
|
"ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
|
|
"vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
|
|
"ipv6(dst='20::20', flow_label=100, src='10::10', nxt=58, hop_limit=64, traffic_class=32)",
|
|
"icmpv6(code=0,data=icmpv6echo(data=b'\\x00\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f !\"#$%&\\'()*+,-./0123'),type_=128)"
|
|
],
|
|
"egress":[
|
|
"ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
|
|
"vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
|
|
"ipv6(dst='20::20', flow_label=100, src='10::10', nxt=58, hop_limit=64, traffic_class=32)",
|
|
"icmpv6(code=1,data=icmpv6echo(data=b'\\x00\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f !\"#$%&\\'()*+,-./0123'),type_=128)"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "ethernet/mpls/ipv6/icmpv6(code=0)-->'actions=pop_mpls:0x86dd,goto_table:1','table_id:1,icmpv6_code=0,actions=set_field:1->icmpv6_code,output:2'",
|
|
"prerequisite":[
|
|
{
|
|
"OFPFlowMod":{
|
|
"table_id":0,
|
|
"match":{
|
|
"OFPMatch":{
|
|
"oxm_fields":[
|
|
{
|
|
"OXMTlv":{
|
|
"field":"eth_type",
|
|
"value":34887
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"instructions":[
|
|
{
|
|
"OFPInstructionActions":{
|
|
"actions":[
|
|
{
|
|
"OFPActionPopMpls":{
|
|
"ethertype":34525
|
|
}
|
|
}
|
|
],
|
|
"type":4
|
|
}
|
|
},
|
|
{
|
|
"OFPInstructionGotoTable":{
|
|
"table_id":1
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"OFPFlowMod":{
|
|
"table_id":1,
|
|
"match":{
|
|
"OFPMatch":{
|
|
"oxm_fields":[
|
|
{
|
|
"OXMTlv":{
|
|
"field":"eth_type",
|
|
"value":34525
|
|
}
|
|
},
|
|
{
|
|
"OXMTlv":{
|
|
"field":"ip_proto",
|
|
"value":58
|
|
}
|
|
},
|
|
{
|
|
"OXMTlv":{
|
|
"field":"icmpv6_code",
|
|
"value":0
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"instructions":[
|
|
{
|
|
"OFPInstructionActions":{
|
|
"actions":[
|
|
{
|
|
"OFPActionSetField":{
|
|
"field":{
|
|
"OXMTlv":{
|
|
"field":"icmpv6_code",
|
|
"value":1
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"OFPActionOutput":{
|
|
"port":2
|
|
}
|
|
}
|
|
],
|
|
"type":4
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"tests":[
|
|
{
|
|
"ingress":[
|
|
"ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
|
|
"mpls(bsb=1, label=100, exp=3, ttl=64)",
|
|
"ipv6(dst='20::20', flow_label=100, src='10::10', nxt=58, hop_limit=64, traffic_class=32)",
|
|
"icmpv6(code=0,data=icmpv6echo(data=b'\\x00\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f !\"#$%&\\'()*+,-./0123'),type_=128)"
|
|
],
|
|
"egress":[
|
|
"ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
|
|
"ipv6(dst='20::20', flow_label=100, src='10::10', nxt=58, hop_limit=64, traffic_class=32)",
|
|
"icmpv6(code=1,data=icmpv6echo(data=b'\\x00\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f !\"#$%&\\'()*+,-./0123'),type_=128)"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "ethernet/itag/ethernet/ipv6/icmpv6(code=0)-->'actions=pop_pbb,goto_table:1','table_id:1,icmpv6_code=0,actions=set_field:1->icmpv6_code,output:2'",
|
|
"prerequisite":[
|
|
{
|
|
"OFPFlowMod":{
|
|
"table_id":0,
|
|
"match":{
|
|
"OFPMatch":{
|
|
"oxm_fields":[
|
|
{
|
|
"OXMTlv":{
|
|
"field":"eth_type",
|
|
"value":35047
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"instructions":[
|
|
{
|
|
"OFPInstructionActions":{
|
|
"actions":[
|
|
{
|
|
"OFPActionPopPbb":{}
|
|
}
|
|
],
|
|
"type":4
|
|
}
|
|
},
|
|
{
|
|
"OFPInstructionGotoTable":{
|
|
"table_id":1
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"OFPFlowMod":{
|
|
"table_id":1,
|
|
"match":{
|
|
"OFPMatch":{
|
|
"oxm_fields":[
|
|
{
|
|
"OXMTlv":{
|
|
"field":"eth_type",
|
|
"value":34525
|
|
}
|
|
},
|
|
{
|
|
"OXMTlv":{
|
|
"field":"ip_proto",
|
|
"value":58
|
|
}
|
|
},
|
|
{
|
|
"OXMTlv":{
|
|
"field":"icmpv6_code",
|
|
"value":0
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"instructions":[
|
|
{
|
|
"OFPInstructionActions":{
|
|
"actions":[
|
|
{
|
|
"OFPActionSetField":{
|
|
"field":{
|
|
"OXMTlv":{
|
|
"field":"icmpv6_code",
|
|
"value":1
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"OFPActionOutput":{
|
|
"port":2
|
|
}
|
|
}
|
|
],
|
|
"type":4
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"tests":[
|
|
{
|
|
"ingress":[
|
|
"ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=35047)",
|
|
"itag(sid=100)",
|
|
"ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
|
|
"ipv6(dst='20::20', flow_label=100, src='10::10', nxt=58, hop_limit=64, traffic_class=32)",
|
|
"icmpv6(code=0,data=icmpv6echo(data=b'\\x00\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f !\"#$%&\\'()*+,-./0123'),type_=128)"
|
|
],
|
|
"egress":[
|
|
"ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
|
|
"ipv6(dst='20::20', flow_label=100, src='10::10', nxt=58, hop_limit=64, traffic_class=32)",
|
|
"icmpv6(code=1,data=icmpv6echo(data=b'\\x00\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f !\"#$%&\\'()*+,-./0123'),type_=128)"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|