Commit 2ca5821e authored by bee26's avatar bee26
Browse files

Merge branch 'cherry-pick-e3f444b1' into 'release-22.1'

release-22.1:Backport!6386

See merge request !6387
parents 77769547 60234adb
# ----------------------------------------------------------------------
# NSN.TIMOS.get_lldp_neighbors
# ----------------------------------------------------------------------
# Copyright (C) 2007-2020 The NOC Project
# Copyright (C) 2007-2022 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
......@@ -64,7 +64,13 @@ class Script(BaseScript):
# PortId Subtype : 5 (interfaceName)
# Port Id : 65:73:61:74:2D:32:2F:31:2F:32:31
# "esat-2/1/21"
remote_port_name1, remote_port__name2 = port.split("\n", 1)
#
# PortId Subtype : 5 (interfaceName)
# Port Id : 58:47:69:67:61:62:69:74:45:74:68:65:72:6E:65:74:30:2F:
# 30:2F:34:38
# "XGigabitEthernet0/0/48"
remote_port_name1, remote_port__name2 = port.rsplit("\n", 1)
remote_port_name1 = re.sub(r"\n|\s+", "", remote_port_name1)
return smart_text(codecs.decode(remote_port_name1.strip().replace(":", ""), "hex"))
elif port_type == "7":
return port.replace("\n", "")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment