|
@@ 1104-1115 (lines=12) @@
|
| 1101 |
|
elif vlan_a == 0 and vlan_z == "4096/4096": |
| 1102 |
|
flow_mod_za["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 1103 |
|
|
| 1104 |
|
if not isinstance(vlan_a, list) and vlan_a not in self.special_cases: |
| 1105 |
|
flow_mod_za["actions"].insert( |
| 1106 |
|
0, {"action_type": "set_vlan", "vlan_id": vlan_a} |
| 1107 |
|
) |
| 1108 |
|
if not vlan_z: |
| 1109 |
|
flow_mod_za["actions"].insert( |
| 1110 |
|
0, {"action_type": "push_vlan", "tag_type": "c"} |
| 1111 |
|
) |
| 1112 |
|
if vlan_z == 0: |
| 1113 |
|
flow_mod_az["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 1114 |
|
elif vlan_a == "4096/4096" and vlan_z == 0: |
| 1115 |
|
flow_mod_az["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 1116 |
|
|
| 1117 |
|
flows = [] |
| 1118 |
|
if isinstance(vlan_a, list): |
|
@@ 1091-1102 (lines=12) @@
|
| 1088 |
|
self.queue_id, vlan_z |
| 1089 |
|
) |
| 1090 |
|
|
| 1091 |
|
if not isinstance(vlan_z, list) and vlan_z not in self.special_cases: |
| 1092 |
|
flow_mod_az["actions"].insert( |
| 1093 |
|
0, {"action_type": "set_vlan", "vlan_id": vlan_z} |
| 1094 |
|
) |
| 1095 |
|
if not vlan_a: |
| 1096 |
|
flow_mod_az["actions"].insert( |
| 1097 |
|
0, {"action_type": "push_vlan", "tag_type": "c"} |
| 1098 |
|
) |
| 1099 |
|
if vlan_a == 0: |
| 1100 |
|
flow_mod_za["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 1101 |
|
elif vlan_a == 0 and vlan_z == "4096/4096": |
| 1102 |
|
flow_mod_za["actions"].insert(0, {"action_type": "pop_vlan"}) |
| 1103 |
|
|
| 1104 |
|
if not isinstance(vlan_a, list) and vlan_a not in self.special_cases: |
| 1105 |
|
flow_mod_za["actions"].insert( |