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