fix trailing command in net_neighbors nxos_facts (#47548)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
(cherry picked from commit d79b6c8406)
This commit is contained in:
Trishna Guha 2018-10-25 10:13:38 +05:30 committed by Toshio Kuratomi
parent 080aa35c5b
commit 5f0d691716

View file

@ -637,7 +637,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)