Skip to content

Commit e274603

Browse files
(feat): API side support QandQ Vlan configuration
Introduce new API field InnerVlan storing the inner vlan of a QandQ Tag.
1 parent edba772 commit e274603

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

api/core/v1alpha1/interface_types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ type Switchport struct {
148148
// +kubebuilder:validation:Maximum=4094
149149
AccessVlan int32 `json:"accessVlan,omitempty"`
150150

151+
// InnerVlan specifies the VLAN id for QinQ access mode switchports.
152+
// +optional
153+
// +kubebuilder:validation:Minimum=1
154+
// +kubebuilder:validation:Maximum=4094
155+
InnerVlan int32 `json:"innerVlan,omitempty"`
156+
151157
// NativeVlan specifies the native VLAN ID for trunk mode switchports.
152158
// Only applicable when Mode is set to "Trunk".
153159
// +optional

charts/network-operator/templates/crd/interfaces.networking.metal.ironcore.dev.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,13 @@ spec:
360360
type: integer
361361
minItems: 1
362362
type: array
363+
innerVlan:
364+
description: InnerVlan specifies the VLAN id for QinQ access mode
365+
switchports.
366+
format: int32
367+
maximum: 4094
368+
minimum: 1
369+
type: integer
363370
mode:
364371
description: Mode defines the switchport mode, such as access
365372
or trunk.

config/crd/bases/networking.metal.ironcore.dev_interfaces.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,13 @@ spec:
357357
type: integer
358358
minItems: 1
359359
type: array
360+
innerVlan:
361+
description: InnerVlan specifies the VLAN id for QinQ access mode
362+
switchports.
363+
format: int32
364+
maximum: 4094
365+
minimum: 1
366+
type: integer
360367
mode:
361368
description: Mode defines the switchport mode, such as access
362369
or trunk.

0 commit comments

Comments
 (0)