Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions api/cisco/nx/v1alpha1/bordergateway_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ type BorderGatewaySpec struct {
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="DeviceRef is immutable"
DeviceRef v1alpha1.LocalObjectReference `json:"deviceRef"`

// AdminState indicates whether the BorderGateway instance is administratively up or down.
// +optional
// +kubebuilder:default=Up
AdminState v1alpha1.AdminState `json:"adminState,omitempty"`

// MultisiteID is the identifier for the multisite border gateway.
// +required
// +kubebuilder:validation:Minimum=1
Expand Down
6 changes: 6 additions & 0 deletions api/core/v1alpha1/bgp_peer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ type BGPPeerSpec struct {
// +optional
ProviderConfigRef *TypedLocalObjectReference `json:"providerConfigRef,omitempty"`

// AdminState indicates whether this BGP peer is administratively up or down.
// When Down, the BGP session with this peer is administratively shut down.
// +optional
// +kubebuilder:default=Up
AdminState AdminState `json:"adminState,omitempty"`

// Address is the IPv4 address of the BGP peer.
// +required
// +kubebuilder:validation:Format=ipv4
Expand Down
5 changes: 5 additions & 0 deletions api/core/v1alpha1/bgp_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ type BGPSpec struct {
// +optional
ProviderConfigRef *TypedLocalObjectReference `json:"providerConfigRef,omitempty"`

// AdminState indicates whether this BGP router is administratively up or down.
// +optional
// +kubebuilder:default=Up
AdminState AdminState `json:"adminState,omitempty"`

// ASNumber is the autonomous system number (ASN) for the BGP router.
// Supports both plain format (1-4294967295) and dotted notation (1-65535.0-65535) as per RFC 5396.
// +required
Expand Down
5 changes: 5 additions & 0 deletions api/core/v1alpha1/dns_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ type DNSSpec struct {
// +optional
ProviderConfigRef *TypedLocalObjectReference `json:"providerConfigRef,omitempty"`

// AdminState indicates whether DNS is administratively up or down.
// +optional
// +kubebuilder:default=Up
AdminState AdminState `json:"adminState,omitempty"`

// Default domain name that the device uses to complete unqualified hostnames.
// +required
// +kubebuilder:validation:MinLength=1
Expand Down
8 changes: 5 additions & 3 deletions api/core/v1alpha1/interface_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,16 @@ type InterfaceSpec struct {
BFD *BFD `json:"bfd,omitempty"`
}

// AdminState represents the administrative state of the interface.
// AdminState represents the administrative state of a resource.
// This type is used across multiple resources including interfaces, protocols (BGP, OSPF, ISIS, PIM),
// and system services (NTP, DNS) to indicate whether these are administratively enabled or disabled.
// +kubebuilder:validation:Enum=Up;Down
type AdminState string

const (
// AdminStateUp indicates that the interface is administratively set up.
// AdminStateUp indicates that the resource is administratively enabled.
AdminStateUp AdminState = "Up"
// AdminStateDown indicates that the interface is administratively set down.
// AdminStateDown indicates that the resource is administratively disabled.
AdminStateDown AdminState = "Down"
)

Expand Down
5 changes: 5 additions & 0 deletions api/core/v1alpha1/isis_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ type ISISSpec struct {
// +optional
ProviderConfigRef *TypedLocalObjectReference `json:"providerConfigRef,omitempty"`

// AdminState indicates whether the ISIS instance is administratively up or down.
// +optional
// +kubebuilder:default=Up
AdminState AdminState `json:"adminState,omitempty"`

// Instance is the name of the ISIS instance.
// +required
// +kubebuilder:validation:MinLength=1
Expand Down
5 changes: 5 additions & 0 deletions api/core/v1alpha1/ntp_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ type NTPSpec struct {
// +optional
ProviderConfigRef *TypedLocalObjectReference `json:"providerConfigRef,omitempty"`

// AdminState indicates whether NTP is administratively up or down.
// +optional
// +kubebuilder:default=Up
AdminState AdminState `json:"adminState,omitempty"`

// Source interface for all NTP traffic.
// +required
// +kubebuilder:validation:MinLength=1
Expand Down
5 changes: 5 additions & 0 deletions api/core/v1alpha1/ospf_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ type OSPFSpec struct {
// +optional
ProviderConfigRef *TypedLocalObjectReference `json:"providerConfigRef,omitempty"`

// AdminState indicates whether the OSPF instance is administratively up or down.
// +optional
// +kubebuilder:default=Up
AdminState AdminState `json:"adminState,omitempty"`

// Instance is the process tag of the OSPF instance.
// +required
// +kubebuilder:validation:MinLength=1
Expand Down
5 changes: 5 additions & 0 deletions api/core/v1alpha1/pim_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ type PIMSpec struct {
// +optional
ProviderConfigRef *TypedLocalObjectReference `json:"providerConfigRef,omitempty"`

// AdminState indicates whether the PIM instance is administratively up or down.
// +optional
// +kubebuilder:default=Up
AdminState AdminState `json:"adminState,omitempty"`

// RendezvousPoints defines the list of rendezvous points for sparse mode multicast.
// +optional
// +listType=map
Expand Down
1 change: 1 addition & 0 deletions api/core/v1alpha1/ref_types.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and IronCore contributors
// SPDX-License-Identifier: Apache-2.0

package v1alpha1

// LocalObjectReference contains enough information to locate a
Expand Down
15 changes: 2 additions & 13 deletions api/core/v1alpha1/vlan_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,10 @@ type VLANSpec struct {

// AdminState indicates whether the VLAN is administratively active or inactive/suspended.
// +optional
// +kubebuilder:default=Active
AdminState VLANState `json:"adminState"`
// +kubebuilder:default=Up
AdminState AdminState `json:"adminState,omitempty"`
}

// VLANState represents the administrative state of the VLAN.
// +kubebuilder:validation:Enum=Active;Suspended
type VLANState string

const (
// VLANStateActive indicates that the VLAN is administratively active.
VLANStateActive VLANState = "Active"
// VLANStateSuspended indicates that the VLAN is administratively inactive/suspended.
VLANStateSuspended VLANState = "Suspended"
)

// VLANStatus defines the observed state of VLAN.
type VLANStatus struct {
// The conditions are a list of status objects that describe the state of the VLAN.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,14 @@ spec:
type: object
type: object
type: object
adminState:
default: Up
description: AdminState indicates whether this BGP router is administratively
up or down.
enum:
- Up
- Down
type: string
asNumber:
anyOf:
- type: integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,15 @@ spec:
type: string
type: object
type: object
adminState:
default: Up
description: |-
AdminState indicates whether this BGP peer is administratively up or down.
When Down, the BGP session with this peer is administratively shut down.
enum:
- Up
- Down
type: string
asNumber:
anyOf:
- type: integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ spec:
Specification of the desired state of the resource.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
properties:
adminState:
default: Up
description: AdminState indicates whether DNS is administratively
up or down.
enum:
- Up
- Down
type: string
deviceRef:
description: |-
DeviceName is the name of the Device this object belongs to. The Device object must exist in the same namespace.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ spec:
minItems: 1
type: array
x-kubernetes-list-type: set
adminState:
default: Up
description: AdminState indicates whether the ISIS instance is administratively
up or down.
enum:
- Up
- Down
type: string
deviceRef:
description: |-
DeviceName is the name of the Device this object belongs to. The Device object must exist in the same namespace.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ spec:
Specification of the desired state of the resource.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
properties:
adminState:
default: Up
description: AdminState indicates whether NTP is administratively
up or down.
enum:
- Up
- Down
type: string
deviceRef:
description: |-
DeviceName is the name of the Device this object belongs to. The Device object must exist in the same namespace.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ spec:
Specification of the desired state of the resource.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
properties:
adminState:
default: Up
description: AdminState indicates whether the OSPF instance is administratively
up or down.
enum:
- Up
- Down
type: string
deviceRef:
description: |-
DeviceName is the name of the Device this object belongs to. The Device object must exist in the same namespace.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ spec:
Specification of the desired state of the resource.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
properties:
adminState:
default: Up
description: AdminState indicates whether the PIM instance is administratively
up or down.
enum:
- Up
- Down
type: string
deviceRef:
description: |-
DeviceName is the name of the Device this object belongs to. The Device object must exist in the same namespace.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ spec:
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
properties:
adminState:
default: Active
default: Up
description: AdminState indicates whether the VLAN is administratively
active or inactive/suspended.
enum:
- Active
- Suspended
- Up
- Down
type: string
deviceRef:
description: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ spec:
Specification of the desired state of the resource.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
properties:
adminState:
default: Up
description: AdminState indicates whether the BorderGateway instance
is administratively up or down.
enum:
- Up
- Down
type: string
bgpPeerRefs:
description: |-
BGPPeerRefs is a list of BGP peers that are part of the border gateway configuration.
Expand Down
8 changes: 8 additions & 0 deletions config/crd/bases/networking.metal.ironcore.dev_bgp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,14 @@ spec:
type: object
type: object
type: object
adminState:
default: Up
description: AdminState indicates whether this BGP router is administratively
up or down.
enum:
- Up
- Down
type: string
asNumber:
anyOf:
- type: integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,15 @@ spec:
type: string
type: object
type: object
adminState:
default: Up
description: |-
AdminState indicates whether this BGP peer is administratively up or down.
When Down, the BGP session with this peer is administratively shut down.
enum:
- Up
- Down
type: string
asNumber:
anyOf:
- type: integer
Expand Down
8 changes: 8 additions & 0 deletions config/crd/bases/networking.metal.ironcore.dev_dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ spec:
Specification of the desired state of the resource.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
properties:
adminState:
default: Up
description: AdminState indicates whether DNS is administratively
up or down.
enum:
- Up
- Down
type: string
deviceRef:
description: |-
DeviceName is the name of the Device this object belongs to. The Device object must exist in the same namespace.
Expand Down
8 changes: 8 additions & 0 deletions config/crd/bases/networking.metal.ironcore.dev_isis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ spec:
minItems: 1
type: array
x-kubernetes-list-type: set
adminState:
default: Up
description: AdminState indicates whether the ISIS instance is administratively
up or down.
enum:
- Up
- Down
type: string
deviceRef:
description: |-
DeviceName is the name of the Device this object belongs to. The Device object must exist in the same namespace.
Expand Down
8 changes: 8 additions & 0 deletions config/crd/bases/networking.metal.ironcore.dev_ntp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ spec:
Specification of the desired state of the resource.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
properties:
adminState:
default: Up
description: AdminState indicates whether NTP is administratively
up or down.
enum:
- Up
- Down
type: string
deviceRef:
description: |-
DeviceName is the name of the Device this object belongs to. The Device object must exist in the same namespace.
Expand Down
8 changes: 8 additions & 0 deletions config/crd/bases/networking.metal.ironcore.dev_ospf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ spec:
Specification of the desired state of the resource.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
properties:
adminState:
default: Up
description: AdminState indicates whether the OSPF instance is administratively
up or down.
enum:
- Up
- Down
type: string
deviceRef:
description: |-
DeviceName is the name of the Device this object belongs to. The Device object must exist in the same namespace.
Expand Down
8 changes: 8 additions & 0 deletions config/crd/bases/networking.metal.ironcore.dev_pim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ spec:
Specification of the desired state of the resource.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
properties:
adminState:
default: Up
description: AdminState indicates whether the PIM instance is administratively
up or down.
enum:
- Up
- Down
type: string
deviceRef:
description: |-
DeviceName is the name of the Device this object belongs to. The Device object must exist in the same namespace.
Expand Down
Loading
Loading