Skip to content

Commit

Permalink
bump: nmstate-2.2.36
Browse files Browse the repository at this point in the history
Signed-off-by: Enrique Llorente <[email protected]>
  • Loading branch information
qinqon committed Oct 4, 2024
1 parent da96bc8 commit 990a54b
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 44 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
SHELL := /bin/bash
OUTPUT_DIR=${CURDIR}/.output

NMSTATE_VERSION ?= 2.2.35
NMSTATE_VERSION ?= 2.2.36
NMSTATE_E2E_VERSION ?= 2.2.33# We are missing the dumps from newer releases this is the fix https://github.com/nmstate/nmstate/pull/2797
NMSTATE_REPO ?= https://github.com/nmstate/nmstate
NMSTATE_SOURCE_TARBALL_URL ?= https://github.com/nmstate/nmstate/archive/refs/tags/v${NMSTATE_VERSION}.tar.gz
Expand Down
16 changes: 14 additions & 2 deletions test/crd/nmstate.io_clusternetworkstate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ spec:
Linux bridge: Bridge interface provided by linux kernel.
When serializing or deserializing, the [BaseInterface] will
be flatted and [LinuxBridgeConfig] stored as `bridge` section. The yaml
output [crate::NetworkState] containing an example linux bridge interface:
Expand Down Expand Up @@ -1323,6 +1325,8 @@ spec:
description: Psk PSK authentication, if not defined,
will use X.509 PKI authentication
type: string
require-id-on-certificate:
type: boolean
right:
type: string
rightcert:
Expand Down Expand Up @@ -2324,8 +2328,6 @@ spec:
TableID Route table ID of this VRF interface.
Deserialize and serialize from/to `route-table-id`.
x-kubernetes-int-or-string: true
required:
- port
type: object
vxlan:
properties:
Expand Down Expand Up @@ -2576,6 +2578,11 @@ spec:
- unreachable
- prohibit
type: string
source:
description: |-
Source Route source defines which IP address should be used as the source
for packets routed via a specific route
type: string
state:
description: State Only used for delete route when
applying.
Expand Down Expand Up @@ -2657,6 +2664,11 @@ spec:
- unreachable
- prohibit
type: string
source:
description: |-
Source Route source defines which IP address should be used as the source
for packets routed via a specific route
type: string
state:
description: State Only used for delete route when
applying.
Expand Down
10 changes: 10 additions & 0 deletions v2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

97 changes: 56 additions & 41 deletions v2/zz_generated.types.go
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,9 @@ type RouteEntry struct {
RouteType *RouteType `json:"route-type,omitempty"`
// Cwnd Congestion window clamp
Cwnd *uint32 `json:"cwnd,omitempty"`
// Source Route source defines which IP address should be used as the source
// for packets routed via a specific route
Source *string `json:"source,omitempty"`
}

// +kubebuilder:validation:Enum="blackhole";"unreachable";"prohibit";
Expand Down Expand Up @@ -840,7 +843,9 @@ type HostNameState struct {
Config *string `json:"config,omitempty"`
}

// BondInterface Bond interface. When serializing or deserializing, the [BaseInterface] will
// BondInterface Bond interface.
//
// When serializing or deserializing, the [BaseInterface] will
// be flatted and [BondConfig] stored as `link-aggregation` section. The yaml
// output [crate::NetworkState] containing an example bond interface:
// ```yml
Expand Down Expand Up @@ -992,10 +997,11 @@ const BondAllPortsActiveDelivered = BondAllPortsActive("delivered")

// enum BondAllPortsActive

// BondArpAllTargets The `arp_all_targets` kernel bond option: Specifies the quantity of
// arp_ip_targets that must be reachable in order for the ARP monitor to
// consider a port as being up. This option affects only active-backup mode
// for ports with arp_validation enabled.
// BondArpAllTargets The `arp_all_targets` kernel bond option.
//
// Specifies the quantity of arp_ip_targets that must be reachable in order for
// the ARP monitor to consider a port as being up. This option affects only
// active-backup mode for ports with arp_validation enabled.
// +kubebuilder:validation:Enum="any";"0";"all";"1";
type BondArpAllTargets string

Expand All @@ -1008,10 +1014,11 @@ const BondArpAllTargetsAll = BondArpAllTargets("all")

// enum BondArpAllTargets

// BondArpValidate The `arp_validate` kernel bond option: Specifies whether or not ARP probes
// and replies should be validated in any mode that supports arp monitoring, or
// whether non-ARP traffic should be filtered (disregarded) for link monitoring
// purposes.
// BondArpValidate The `arp_validate` kernel bond option.
//
// Specifies whether or not ARP probes and replies should be validated in any
// mode that supports arp monitoring, or whether non-ARP traffic should be
// filtered (disregarded) for link monitoring purposes.
// +kubebuilder:validation:Enum="none";"0";"active";"1";"backup";"2";"all";"3";"filter";"4";"filter_active";"5";"filter_backup";"6";
type BondArpValidate string

Expand Down Expand Up @@ -1054,10 +1061,12 @@ const BondArpValidateFilterBackup = BondArpValidate("filter_backup")

// enum BondArpValidate

// BondFailOverMac The `fail_over_mac` kernel bond option: Specifies whether active-backup mode
// should set all ports to the same MAC address at port attachment (the
// traditional behavior), or, when enabled, perform special handling of the
// bond's MAC address in accordance with the selected policy.
// BondFailOverMac The `fail_over_mac` kernel bond option.
//
// Specifies whether active-backup mode should set all ports to the same MAC
// address at port attachment (the traditional behavior), or, when enabled,
// perform special handling of the bond's MAC address in accordance with the
// selected policy.
// +kubebuilder:validation:Enum="none";"0";"active";"1";"follow";"2";
type BondFailOverMac string

Expand Down Expand Up @@ -1088,11 +1097,12 @@ const BondFailOverMacFollow = BondFailOverMac("follow")

// enum BondFailOverMac

// BondPrimaryReselect The `primary_reselect` kernel bond option: Specifies the reselection policy
// for the primary port. This affects how the primary port is chosen to
// become the active port when failure of the active port or recovery of the
// primary port occurs. This option is designed to prevent flip-flopping
// between the primary port and other ports.
// BondPrimaryReselect The `primary_reselect` kernel bond option.
//
// Specifies the reselection policy for the primary port. This affects how the
// primary port is chosen to become the active port when failure of the active
// port or recovery of the primary port occurs. This option is designed to
// prevent flip-flopping between the primary port and other ports.
// +kubebuilder:validation:Enum="always";"0";"better";"1";"failure";"2";
type BondPrimaryReselect string

Expand All @@ -1116,8 +1126,10 @@ const BondPrimaryReselectFailure = BondPrimaryReselect("failure")

// enum BondPrimaryReselect

// BondXmitHashPolicy The `xmit_hash_policy` kernel bond option: Selects the transmit hash policy
// to use for port selection in balance-xor, 802.3ad, and tlb modes.
// BondXmitHashPolicy The `xmit_hash_policy` kernel bond option.
//
// Selects the transmit hash policy to use for port selection in balance-xor,
// 802.3ad, and tlb modes.
// +kubebuilder:validation:Enum="layer2";"0";"layer3+4";"1";"layer2+3";"2";"encap2+3";"3";"encap3+4";"4";"vlan+srcmac";"5";
type BondXmitHashPolicy string

Expand Down Expand Up @@ -1961,7 +1973,7 @@ type VrfConfig struct {
// Port Port list.
// Deserialize and serialize from/to `port`.
// Also deserialize from `ports`.
Port *[]string `json:"port"`
Port *[]string `json:"port,omitempty"`
// TableID Route table ID of this VRF interface.
// Deserialize and serialize from/to `route-table-id`.
TableID *intstr.IntOrString `json:"route-table-id,omitempty"`
Expand Down Expand Up @@ -2479,10 +2491,11 @@ const MacSecOffloadMac = MacSecOffload("mac")

// enum MacSecOffload

// IpsecInterface The libreswan Ipsec interface. This interface does not exist in kernel
// space but only exist in user space tools.
// This is the example yaml output of [crate::NetworkState] with a libreswan
// ipsec connection:
// IpsecInterface The libreswan Ipsec interface.
//
// This interface does not exist in kernel space but only exist in user space
// tools. This is the example yaml output of [crate::NetworkState] with a
// libreswan ipsec connection:
// ```yaml
// ---
// interfaces:
Expand Down Expand Up @@ -2517,22 +2530,23 @@ type LibreswanConfig struct {
Leftcert *string `json:"leftcert,omitempty"`
Ikev2 *string `json:"ikev2,omitempty"`
// Psk PSK authentication, if not defined, will use X.509 PKI authentication
Psk *string `json:"psk,omitempty"`
Ikelifetime *string `json:"ikelifetime,omitempty"`
Salifetime *string `json:"salifetime,omitempty"`
Ike *string `json:"ike,omitempty"`
Esp *string `json:"esp,omitempty"`
Dpddelay *intstr.IntOrString `json:"dpddelay,omitempty"`
Dpdtimeout *intstr.IntOrString `json:"dpdtimeout,omitempty"`
Dpdaction *string `json:"dpdaction,omitempty"`
IpsecInterface *intstr.IntOrString `json:"ipsec-interface,omitempty"`
Authby *string `json:"authby,omitempty"`
Rightsubnet *string `json:"rightsubnet,omitempty"`
Leftsubnet *string `json:"leftsubnet,omitempty"`
Leftmodecfgclient *bool `json:"leftmodecfgclient,omitempty"`
Kind *LibreswanConnectionType `json:"type,omitempty"`
Hostaddrfamily *LibreswanAddressFamily `json:"hostaddrfamily,omitempty"`
Clientaddrfamily *LibreswanAddressFamily `json:"clientaddrfamily,omitempty"`
Psk *string `json:"psk,omitempty"`
Ikelifetime *string `json:"ikelifetime,omitempty"`
Salifetime *string `json:"salifetime,omitempty"`
Ike *string `json:"ike,omitempty"`
Esp *string `json:"esp,omitempty"`
Dpddelay *intstr.IntOrString `json:"dpddelay,omitempty"`
Dpdtimeout *intstr.IntOrString `json:"dpdtimeout,omitempty"`
Dpdaction *string `json:"dpdaction,omitempty"`
IpsecInterface *intstr.IntOrString `json:"ipsec-interface,omitempty"`
Authby *string `json:"authby,omitempty"`
Rightsubnet *string `json:"rightsubnet,omitempty"`
Leftsubnet *string `json:"leftsubnet,omitempty"`
Leftmodecfgclient *bool `json:"leftmodecfgclient,omitempty"`
Kind *LibreswanConnectionType `json:"type,omitempty"`
Hostaddrfamily *LibreswanAddressFamily `json:"hostaddrfamily,omitempty"`
Clientaddrfamily *LibreswanAddressFamily `json:"clientaddrfamily,omitempty"`
RequireIDOnCertificate *bool `json:"require-id-on-certificate,omitempty"`
}

// +kubebuilder:validation:Enum="tunnel";"transport";
Expand Down Expand Up @@ -2770,6 +2784,7 @@ type BridgeOptions struct {
// BridgeConfig Linux or OVS bridge configuration
//
// Linux bridge: Bridge interface provided by linux kernel.
//
// When serializing or deserializing, the [BaseInterface] will
// be flatted and [LinuxBridgeConfig] stored as `bridge` section. The yaml
// output [crate::NetworkState] containing an example linux bridge interface:
Expand Down

0 comments on commit 990a54b

Please sign in to comment.