|
@@ 1132-1143 (lines=12) @@
|
| 1129 |
|
elif vlan_a == 0 and vlan_z == "4096/4096": |
| 1130 |
|
flow_mod_za["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 1131 |
|
|
| 1132 |
|
if not isinstance(vlan_a, list) and vlan_a not in self.special_cases: |
| 1133 |
|
flow_mod_za["actions"].insert( |
| 1134 |
|
0, {"action_type": "set_vlan", "vlan_id": vlan_a} |
| 1135 |
|
) |
| 1136 |
|
if not vlan_z: |
| 1137 |
|
flow_mod_za["actions"].insert( |
| 1138 |
|
0, {"action_type": "push_vlan", "tag_type": "c"} |
| 1139 |
|
) |
| 1140 |
|
if vlan_z == 0: |
| 1141 |
|
flow_mod_az["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 1142 |
|
elif vlan_a == "4096/4096" and vlan_z == 0: |
| 1143 |
|
flow_mod_az["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 1144 |
|
|
| 1145 |
|
flows = [] |
| 1146 |
|
if isinstance(vlan_a, list): |
|
@@ 1119-1130 (lines=12) @@
|
| 1116 |
|
self.queue_id, vlan_z |
| 1117 |
|
) |
| 1118 |
|
|
| 1119 |
|
if not isinstance(vlan_z, list) and vlan_z not in self.special_cases: |
| 1120 |
|
flow_mod_az["actions"].insert( |
| 1121 |
|
0, {"action_type": "set_vlan", "vlan_id": vlan_z} |
| 1122 |
|
) |
| 1123 |
|
if not vlan_a: |
| 1124 |
|
flow_mod_az["actions"].insert( |
| 1125 |
|
0, {"action_type": "push_vlan", "tag_type": "c"} |
| 1126 |
|
) |
| 1127 |
|
if vlan_a == 0: |
| 1128 |
|
flow_mod_za["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 1129 |
|
elif vlan_a == 0 and vlan_z == "4096/4096": |
| 1130 |
|
flow_mod_za["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 1131 |
|
|
| 1132 |
|
if not isinstance(vlan_a, list) and vlan_a not in self.special_cases: |
| 1133 |
|
flow_mod_za["actions"].insert( |