diff --git a/app/Http/Controllers/Api/V4/VlanController.php b/app/Http/Controllers/Api/V4/VlanController.php index 52d7bbd7e..adf1518f1 100644 --- a/app/Http/Controllers/Api/V4/VlanController.php +++ b/app/Http/Controllers/Api/V4/VlanController.php @@ -87,7 +87,6 @@ public function getIPAddresses( Request $request, int $id ) : JsonResponse { * * @see VlanEntity::usedAcrossVlans() for array structure. * - * @param string $ipAddress The IP address to check * @return JsonResponse array of object */ public function usedAcrossVlans( Request $request ) : JsonResponse { diff --git a/app/Http/Controllers/Interfaces/CoreBundleController.php b/app/Http/Controllers/Interfaces/CoreBundleController.php index b0fb113de..291421e40 100644 --- a/app/Http/Controllers/Interfaces/CoreBundleController.php +++ b/app/Http/Controllers/Interfaces/CoreBundleController.php @@ -216,6 +216,7 @@ public function storeWizard( StoreCoreBundle $request ): RedirectResponse { } foreach( [ 'a' => $via , 'b' => $vib ] as $side => $vi ){ + /** @var $vi VirtualInterfaceEntity */ // Set value to the Virtual Interface side A and B $vi->setCustomer( $cust ); $vi->setMtu( $request->input( "mtu" ) ); @@ -223,6 +224,11 @@ public function storeWizard( StoreCoreBundle $request ): RedirectResponse { $vi->setChannelgroup( $request->input( "vi-channel-number-$side" ) ); $vi->setTrunk( $request->input( 'framing' ) ?? false ); $vi->setFastLACP( $request->input( 'fast-lacp' ) ?? false ); + + if( $request->input( "type" ) == CoreBundleEntity::TYPE_L2_LAG ){ + $vi->setLagFraming( true ); + } + } // CHeck if there is at least 1 core link created for the core bundle diff --git a/app/Http/Controllers/RouterController.php b/app/Http/Controllers/RouterController.php index 95594bacb..350435bda 100644 --- a/app/Http/Controllers/RouterController.php +++ b/app/Http/Controllers/RouterController.php @@ -111,7 +111,7 @@ public function edit( int $id = null ): View { // fill the form with router data Former::populate([ 'handle' => array_key_exists( 'handle', $old ) ? $old['handle'] : $rt->getHandle(), - 'vlan' => array_key_exists( 'vlan', $old ) ? $old['vlan'] : $rt->getVlan(), + 'vlan' => array_key_exists( 'vlan', $old ) ? $old['vlan'] : $rt->getVlan()->getId(), 'protocol' => array_key_exists( 'protocol', $old ) ? $old['protocol'] : $rt->getProtocol(), 'type' => array_key_exists( 'type', $old ) ? $old['type'] : $rt->getType(), 'name' => array_key_exists( 'name', $old ) ? $old['name'] : $rt->getName(), diff --git a/database/Proxies/__CG__EntitiesCustomerTag.php b/database/Proxies/__CG__EntitiesCustomerTag.php index 61c36d03a..5b8d28b76 100644 --- a/database/Proxies/__CG__EntitiesCustomerTag.php +++ b/database/Proxies/__CG__EntitiesCustomerTag.php @@ -220,7 +220,7 @@ public function setDisplayAs(string $display_as): \Entities\CustomerTag /** * {@inheritDoc} */ - public function getDescription(): string + public function getDescription() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDescription', []); @@ -231,7 +231,7 @@ public function getDescription(): string /** * {@inheritDoc} */ - public function setDescription(string $description): \Entities\CustomerTag + public function setDescription($description): \Entities\CustomerTag { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setDescription', [$description]); diff --git a/resources/views/customer/overview-tabs/logins.foil.php b/resources/views/customer/overview-tabs/logins.foil.php index e82626a09..075b11508 100644 --- a/resources/views/customer/overview-tabs/logins.foil.php +++ b/resources/views/customer/overview-tabs/logins.foil.php @@ -15,9 +15,14 @@ c->getUsers() as $u ): ?>
No VLAN interfaces defined. - isSuperUser() ): ?> - $t->vi->getId() ] ) ?>">Add one... -
diff --git a/resources/views/customer/overview-tabs/users.foil.php b/resources/views/customer/overview-tabs/users.foil.php index d14b6b62b..e54cba99f 100644 --- a/resources/views/customer/overview-tabs/users.foil.php +++ b/resources/views/customer/overview-tabs/users.foil.php @@ -46,7 +46,7 @@ - diff --git a/resources/views/interfaces/common/vli/ipv4.foil.php b/resources/views/interfaces/common/vli/ipv4.foil.php index ef9ba5d2c..7ba6a09d0 100644 --- a/resources/views/interfaces/common/vli/ipv4.foil.php +++ b/resources/views/interfaces/common/vli/ipv4.foil.php @@ -9,7 +9,7 @@ = Former::select( 'ipv4-address' ) ->label( 'IPv4 Address' ) ->placeholder( 'Choose an IPv4 Address' ) - ->class( "chzn-select-deselect" ) + ->class( "chzn-select-deselect-tag" ) ->blockHelp( 'Select the IP address to assign to this VLAN interface. If empty, ensure you have selected a VLAN above and that the VLAN has available addresses. ' . 'You can also create a new IPv4 address by entering it here but please use clue as validation is minimal.'); ?> diff --git a/resources/views/interfaces/common/vli/ipv6.foil.php b/resources/views/interfaces/common/vli/ipv6.foil.php index 4e1b0dbd8..47337be06 100644 --- a/resources/views/interfaces/common/vli/ipv6.foil.php +++ b/resources/views/interfaces/common/vli/ipv6.foil.php @@ -9,7 +9,7 @@ = Former::select( 'ipv6-address' ) ->label( 'IPv6 Address' ) ->placeholder( 'Choose an IPv6 Address' ) - ->class( "chzn-select-deselect" ) + ->class( "chzn-select-deselect-tag" ) ->blockHelp( 'Select the IP address to assign to this VLAN interface. If empty, ensure you have selected a VLAN above and that the VLAN has available addresses.' . 'You can also create a new IPv6 address by entering it here but please use clue as validation is minimal. Also ensure you use standard short form with lower case letters.' ); ?> diff --git a/resources/views/patch-panel-port/index.foil.php b/resources/views/patch-panel-port/index.foil.php index 579cec69c..57627fbb0 100644 --- a/resources/views/patch-panel-port/index.foil.php +++ b/resources/views/patch-panel-port/index.foil.php @@ -22,10 +22,10 @@