Commit 46103b76 authored by Dmitry Volodin's avatar Dmitry Volodin
Browse files

Cisco.IOS.get_interfaces: Ignore Control Plane Interface

--HG--
branch : feature/microservices
parent 32870409
......@@ -101,6 +101,10 @@ class Profile(BaseProfile):
# Serial0/1/0:15-Signaling -> Serial0/1/0:15
if il.startswith("se") and "-" in interface:
interface = interface.split("-")[0]
# Control Plane Interface
# @todo: Does it relates to CPP?
if il == "Control Plane Interface":
return "Control Plane Interface"
# Fake name. Used only with FM
if il == "all":
return "all"
......
......@@ -313,7 +313,7 @@ class Script(BaseScript):
for match in self.rx_sh_int.finditer(v):
full_ifname = match.group("interface")
ifname = self.profile.convert_interface_name(full_ifname)
if ifname[:2] in ["Vi", "Di", "GM", "CP", "Nv", "Do", "Nu"]:
if ifname[:2] in ["Vi", "Di", "GM", "CP", "Nv", "Do", "Nu", "Co"]:
continue
# NOC-378 - Dirty hack for interface like ATM0/IMA0
if "/ima" in full_ifname.lower():
......
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