Skip to content

Commit

Permalink
[IM] include vlaninterfaceid in layer2interfaces (#834)
Browse files Browse the repository at this point in the history
* [IM] include vlaninterfaceid in layer2interfaces

Fixes #832
  • Loading branch information
listerr authored Mar 30, 2023
1 parent 5567029 commit 7590c1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Tasks/Yaml/SwitchConfigurationGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ private function processVirtualInterface( VirtualInterface $vi ): array
foreach( $vi->vlanInterfaces as $vli ) {
$v = [];
$v[ 'number' ] = $vli->vlan->number;

$v[ 'vlaninterfaceid' ] = $vli->id;

$v[ 'macaddresses' ] = [];
foreach( $vli->layer2addresses as $mac ) {
$v[ 'macaddresses' ][] = $mac->macFormatted( ':' );
Expand Down

0 comments on commit 7590c1e

Please sign in to comment.