Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Andrey Yemelyanov
noc
Commits
faa02eac
Commit
faa02eac
authored
Sep 14, 2018
by
Dmitry Lukhtionov
Browse files
Fix
parent
8bcd2108
Changes
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/Raisecom/ROS/__init__.py
View file @
faa02eac
...
...
@@ -12,6 +12,7 @@
import
re
# NOC modules
from
noc.core.profile.base
import
BaseProfile
from
noc.lib.validators
import
is_int
class
Profile
(
BaseProfile
):
...
...
@@ -135,8 +136,10 @@ class Profile(BaseProfile):
r
=
[]
if
name
.
startswith
(
"port "
):
r
+=
[
name
[
5
:]]
else
:
r
+=
[
"port %s"
%
name
]
elif
name
.
startswith
(
"port"
):
r
+=
[
name
[
4
:]]
elif
is_int
(
name
):
r
+=
[
"port %s"
%
name
,
"port%s"
%
name
]
return
r
def
convert_interface_name
(
self
,
interface
):
...
...
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