mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
fix trailing command in net_neighbors nxos_facts (#47548)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
5f404eb0c1
commit
d79b6c8406
1 changed files with 1 additions and 1 deletions
|
@ -661,7 +661,7 @@ class Interfaces(FactsBase):
|
|||
def parse_lldp_intf(self, data):
|
||||
match = re.search(r'Interface:\s*(\S+)', data, re.M)
|
||||
if match:
|
||||
return match.group(1)
|
||||
return match.group(1).strip(',')
|
||||
|
||||
def parse_lldp_port(self, data):
|
||||
match = re.search(r'Port ID \(outgoing port\):\s*(\S+)', data, re.M)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue