|
@@ 983-994 (lines=12) @@
|
| 980 |
|
elif vlan_a == 0 and vlan_z == "4096/4096": |
| 981 |
|
flow_mod_za["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 982 |
|
|
| 983 |
|
if not isinstance(vlan_a, list) and vlan_a not in self.special_cases: |
| 984 |
|
flow_mod_za["actions"].insert( |
| 985 |
|
0, {"action_type": "set_vlan", "vlan_id": vlan_a} |
| 986 |
|
) |
| 987 |
|
if not vlan_z: |
| 988 |
|
flow_mod_za["actions"].insert( |
| 989 |
|
0, {"action_type": "push_vlan", "tag_type": "c"} |
| 990 |
|
) |
| 991 |
|
if vlan_z == 0: |
| 992 |
|
flow_mod_az["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 993 |
|
elif vlan_a == "4096/4096" and vlan_z == 0: |
| 994 |
|
flow_mod_az["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 995 |
|
|
| 996 |
|
flows = [] |
| 997 |
|
if isinstance(vlan_a, list): |
|
@@ 970-981 (lines=12) @@
|
| 967 |
|
self.queue_id, vlan_z |
| 968 |
|
) |
| 969 |
|
|
| 970 |
|
if not isinstance(vlan_z, list) and vlan_z not in self.special_cases: |
| 971 |
|
flow_mod_az["actions"].insert( |
| 972 |
|
0, {"action_type": "set_vlan", "vlan_id": vlan_z} |
| 973 |
|
) |
| 974 |
|
if not vlan_a: |
| 975 |
|
flow_mod_az["actions"].insert( |
| 976 |
|
0, {"action_type": "push_vlan", "tag_type": "c"} |
| 977 |
|
) |
| 978 |
|
if vlan_a == 0: |
| 979 |
|
flow_mod_za["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 980 |
|
elif vlan_a == 0 and vlan_z == "4096/4096": |
| 981 |
|
flow_mod_za["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 982 |
|
|
| 983 |
|
if not isinstance(vlan_a, list) and vlan_a not in self.special_cases: |
| 984 |
|
flow_mod_za["actions"].insert( |