Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alexey Shapovalov
noc
Commits
46103b76
Commit
46103b76
authored
Nov 23, 2016
by
Dmitry Volodin
Browse files
Cisco.IOS.get_interfaces: Ignore Control Plane Interface
--HG-- branch : feature/microservices
parent
32870409
Changes
2
Hide whitespace changes
Inline
Side-by-side
sa/profiles/Cisco/IOS/__init__.py
View file @
46103b76
...
...
@@ -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"
...
...
sa/profiles/Cisco/IOS/get_interfaces.py
View file @
46103b76
...
...
@@ -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
():
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment