PTP: fix VLAN interface not working
ptp4l configuration needs the correct VLAN interface name for the port section. For example: if the VLAN interface creates the Linux interface named 'vlan100@enp0s8', the port section must be 'vlan100' and not 'enp0s8' nor 'vlan100@enp0s8'. Test Plan: PASS: Assign VLAN interface to PTP instance PASS: Assign bond interface to PTP instance PASS: Assign eth interface to PTP instance Closes-Bug: 1989797 Signed-off-by: Caio Bruchert <caio.bruchert@windriver.com> Change-Id: I953fee83151bc1546786e495514c9352c8ccfc0a
This commit is contained in:
parent
2a3f5931b4
commit
da96f7e2cc
|
@ -304,9 +304,11 @@ class NetworkingPuppet(base.BasePuppet):
|
|||
if host.hostname == temp_host:
|
||||
iinterface = self.dbapi.iinterface_get(
|
||||
temp_interface, host.uuid)
|
||||
if (iinterface['iftype'] ==
|
||||
constants.INTERFACE_TYPE_AE):
|
||||
if iinterface['iftype'] == constants.INTERFACE_TYPE_AE:
|
||||
if_devices = [temp_interface]
|
||||
elif iinterface['iftype'] == constants.INTERFACE_TYPE_VLAN:
|
||||
if_devices = [interface.get_interface_os_ifname(
|
||||
self.context, iinterface)]
|
||||
else:
|
||||
if_devices = interface.get_interface_devices(
|
||||
self.context, iinterface)
|
||||
|
|
Loading…
Reference in New Issue