|
@@ 970-981 (lines=12) @@
|
| 967 |
|
elif vlan_a == 0 and vlan_z == "4096/4096": |
| 968 |
|
flow_mod_za["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 969 |
|
|
| 970 |
|
if not isinstance(vlan_a, list) and vlan_a not in self.special_cases: |
| 971 |
|
flow_mod_za["actions"].insert( |
| 972 |
|
0, {"action_type": "set_vlan", "vlan_id": vlan_a} |
| 973 |
|
) |
| 974 |
|
if not vlan_z: |
| 975 |
|
flow_mod_za["actions"].insert( |
| 976 |
|
0, {"action_type": "push_vlan", "tag_type": "c"} |
| 977 |
|
) |
| 978 |
|
if vlan_z == 0: |
| 979 |
|
flow_mod_az["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 980 |
|
elif vlan_a == "4096/4096" and vlan_z == 0: |
| 981 |
|
flow_mod_az["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 982 |
|
|
| 983 |
|
flows = [] |
| 984 |
|
if isinstance(vlan_a, list): |
|
@@ 957-968 (lines=12) @@
|
| 954 |
|
self.queue_id, vlan_z |
| 955 |
|
) |
| 956 |
|
|
| 957 |
|
if not isinstance(vlan_z, list) and vlan_z not in self.special_cases: |
| 958 |
|
flow_mod_az["actions"].insert( |
| 959 |
|
0, {"action_type": "set_vlan", "vlan_id": vlan_z} |
| 960 |
|
) |
| 961 |
|
if not vlan_a: |
| 962 |
|
flow_mod_az["actions"].insert( |
| 963 |
|
0, {"action_type": "push_vlan", "tag_type": "c"} |
| 964 |
|
) |
| 965 |
|
if vlan_a == 0: |
| 966 |
|
flow_mod_za["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 967 |
|
elif vlan_a == 0 and vlan_z == "4096/4096": |
| 968 |
|
flow_mod_za["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 969 |
|
|
| 970 |
|
if not isinstance(vlan_a, list) and vlan_a not in self.special_cases: |
| 971 |
|
flow_mod_za["actions"].insert( |