NSXv3: Rename parent_tag to traffic_tag

In vmware-nsxlib 0.7.2, parent_tag has been renamed to traffic_tag
in LogicalPort class. So change the plugin code accordingly.

Change-Id: Ie5b3cd544aa41d397b8f0b3dcafee8189a30589c
This commit is contained in:
Shih-Hao Li 2017-02-23 08:25:50 -08:00 committed by garyk
parent aa637fefef
commit e7183e0b11
3 changed files with 4 additions and 4 deletions

View File

@ -26,4 +26,4 @@ oslo.vmware>=2.17.0 # Apache-2.0
PrettyTable<0.8,>=0.7.1 # BSD
tooz>=1.47.0 # Apache-2.0
decorator>=3.4.0 # BSD
vmware-nsxlib>=0.7.0 # Apache-2.0
vmware-nsxlib>=0.7.2 # Apache-2.0

View File

@ -1648,7 +1648,7 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
admin_state=port_data['admin_state_up'],
address_bindings=address_bindings,
attachment_type=attachment_type,
parent_vif_id=parent_name, parent_tag=tag,
parent_vif_id=parent_name, traffic_tag=tag,
switch_profile_ids=profiles)
except nsx_lib_exc.ManagerError as inst:
# we may fail if the QoS is not supported for this port
@ -2296,7 +2296,7 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
switch_profile_ids=switch_profile_ids,
tags_update=tags_update,
parent_vif_id=parent_vif_id,
parent_tag=tag)
traffic_tag=tag)
except nsx_lib_exc.ManagerError as inst:
# we may fail if the QoS is not supported for this port
# (for example - transport zone with KVM)

View File

@ -100,7 +100,7 @@ class NsxV3TrunkHandler(object):
switch_profile_ids=switching_profile_ids,
attachment_type=attachment_type,
parent_vif_id=parent_port_id,
parent_tag=seg_id)
traffic_tag=seg_id)
except nsxlib_exc.ManagerError as e:
with excutils.save_and_reraise_exception():
LOG.error(_LE("Unable to update subport for attachment "