Skip to content

Commit

Permalink
added comment about the re-value of the vlan_id
Browse files Browse the repository at this point in the history
  • Loading branch information
kalsky committed Mar 1, 2019
1 parent 1d6ee41 commit 819af35
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ def _get_set_vlan_result_suc(self, act_by_mode_by_vlan_by_nic, connection_res_ma
for nic_name, actions in nics_to_actions.items():
nic_name = self._validate_vnic_name(nic_name)
for action in actions:
# the vlan_id in the dictionary is the one we use for the PG name - instead of
# having it from whatever inside the vlan - this will require more changes to make it happen,
# but will not require the below re-value of the vlan_id
if ',' in vlan_id:
vlan_id = vlan_id.split(',')[0]+'...'
res = connection_res_map[mode][vlan_id][nic_name][0]
Expand Down

0 comments on commit 819af35

Please sign in to comment.