Skip to content

Commit

Permalink
Add switchport flag to output
Browse files Browse the repository at this point in the history
  • Loading branch information
juztas committed Jan 5, 2024
1 parent 5909157 commit 6a8b22d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/modules/cisconx9_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ def populate_eth(self, intdict, intout):
intout['bandwidth'] = int(int(intdict['eth_bw']) / 1000)
if 'eth_mtu' in intdict:
intout['mtu'] = intdict['eth_mtu']
if 'eth_mode' in intdict and intdict['eth_mode'] == 'trunk':
intout['switchport'] = 'yes'
else:
intout['switchport'] = 'no'

def populate_lldp(self):
lldpdict = self.facts.setdefault('lldp', {})
Expand Down

0 comments on commit 6a8b22d

Please sign in to comment.