Skip to content

Commit

Permalink
[BF] private VLANs need to be selectable also
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Aug 19, 2021
1 parent ffba52e commit 2fbdee0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/Http/Controllers/Interfaces/VlanInterfaceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ public function create( Request $r, VirtualInterface $vi ): View
]);

return view( 'interfaces/vlan/edit' )->with([
'vlans' => Vlan::publicOnly()
->orderBy('number')->get(),
'vlans' => Vlan::orderBy('number')->get(),
'vli' => false,
'vi' => $vi,
'redirect2vi' => $vi ? true : false,
Expand Down Expand Up @@ -184,8 +183,7 @@ public function edit( Request $r, VlanInterface $vli, VirtualInterface $vi = nu
}

return view( 'interfaces/vlan/edit' )->with([
'vlans' => Vlan::publicOnly()
->orderBy('number')->get(),
'vlans' => Vlan:: orderBy('number')->get(),
'vli' => $vli,
'vi' => $vi ?: false,
'duplicateTo' => $duplicateTo ?: false,
Expand Down

0 comments on commit 2fbdee0

Please sign in to comment.