fix trailing command in net_neighbors nxos_facts (#47548)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
pull/47598/head
Trishna Guha 6 years ago committed by GitHub
parent 5f404eb0c1
commit d79b6c8406
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -661,7 +661,7 @@ class Interfaces(FactsBase):
def parse_lldp_intf(self, data): def parse_lldp_intf(self, data):
match = re.search(r'Interface:\s*(\S+)', data, re.M) match = re.search(r'Interface:\s*(\S+)', data, re.M)
if match: if match:
return match.group(1) return match.group(1).strip(',')
def parse_lldp_port(self, data): def parse_lldp_port(self, data):
match = re.search(r'Port ID \(outgoing port\):\s*(\S+)', data, re.M) match = re.search(r'Port ID \(outgoing port\):\s*(\S+)', data, re.M)

Loading…
Cancel
Save