Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e_zombie
noc
Commits
9dd502cb
Commit
9dd502cb
authored
Jun 28, 2022
by
Dmitry Lukhtionov
Browse files
Fix Mellanox.Onyx profile
parent
ecf464b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
sa/profiles/Mellanox/Onyx/get_mac_address_table.py
View file @
9dd502cb
...
...
@@ -41,9 +41,7 @@ class Script(BaseScript):
"vlan_id"
:
match
.
group
(
"vlan_id"
),
"mac"
:
match
.
group
(
"mac"
),
"interfaces"
:
[
iface
],
"type"
:
{
"Dynamic"
:
"D"
,
"Static"
:
"S"
}[
match
.
group
(
"type"
)
],
"type"
:
{
"Dynamic"
:
"D"
,
"Static"
:
"S"
}[
match
.
group
(
"type"
)],
}
)
return
r
sa/profiles/Mellanox/Onyx/profile.py
View file @
9dd502cb
...
...
@@ -24,3 +24,9 @@ class Profile(BaseProfile):
command_exit
=
"exit"
command_disable_pager
=
"terminal length 999"
config_volatile
=
[
r
"^## Generated at .+?\n"
]
def
convert_interface_name
(
self
,
s
):
s
=
s
.
replace
(
"Ethernet "
,
"Eth"
)
s
=
s
.
replace
(
"port-channel "
,
"Po"
)
s
=
s
.
replace
(
"Vlan "
,
"vlan"
)
return
s
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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