Skip to content

Commit

Permalink
Allow support for fake ports (multiple connections via same interface) (
Browse files Browse the repository at this point in the history
  • Loading branch information
juztas authored Jul 11, 2023
1 parent 209ea41 commit 1801725
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ def _addTaggedInterfaces(self, host, port, portDict):
"""Add Tagged Interfaces to expected yaml conf"""
vlanDict = self.__getdefaultVlan(host, port, portDict)
portName = self.switch.getSwitchPortName(host, port)
# Replace virtual port name to real portname if defined
if self.config.has_option(host, f'port_{portName}_realport'):
portName = self.config.config['MAIN'][host][f'port_{portName}_realport']
vlanDict.setdefault('tagged_members', {})
vlanDict['tagged_members'][portName] = 'present'

Expand Down

0 comments on commit 1801725

Please sign in to comment.