Skip to content

Commit

Permalink
Move L2VPN into new menu group
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Jul 14, 2022
1 parent 29c81a7 commit 15395a5
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions netbox/netbox/navigation_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def get_model_buttons(app_label, model_name, actions=('add', 'import')):

CONNECTIONS_MENU = Menu(
label='Connections',
icon_class='mdi mdi-ethernet',
icon_class='mdi mdi-connection',
groups=(
MenuGroup(
label='Connections',
Expand Down Expand Up @@ -260,13 +260,6 @@ def get_model_buttons(app_label, model_name, actions=('add', 'import')):
get_model_item('ipam', 'vlangroup', 'VLAN Groups'),
),
),
MenuGroup(
label='L2VPNs',
items=(
get_model_item('ipam', 'l2vpn', 'L2VPNs'),
get_model_item('ipam', 'l2vpntermination', 'Terminations'),
),
),
MenuGroup(
label='Other',
items=(
Expand All @@ -278,6 +271,20 @@ def get_model_buttons(app_label, model_name, actions=('add', 'import')):
),
)

OVERLAY_MENU = Menu(
label='Overlay',
icon_class='mdi mdi-graph-outline',
groups=(
MenuGroup(
label='L2VPNs',
items=(
get_model_item('ipam', 'l2vpn', 'L2VPNs'),
get_model_item('ipam', 'l2vpntermination', 'Terminations'),
),
),
),
)

VIRTUALIZATION_MENU = Menu(
label='Virtualization',
icon_class='mdi mdi-monitor',
Expand Down Expand Up @@ -387,6 +394,7 @@ def get_model_buttons(app_label, model_name, actions=('add', 'import')):
CONNECTIONS_MENU,
WIRELESS_MENU,
IPAM_MENU,
OVERLAY_MENU,
VIRTUALIZATION_MENU,
CIRCUITS_MENU,
POWER_MENU,
Expand Down

0 comments on commit 15395a5

Please sign in to comment.