apiVersion: nmstate.io/v1
kind: NodeNetworkConfigurationPolicy
metadata:
name: br1-eth1-copy-ipv4-policy
spec:
nodeSelector:
node-role.kubernetes.io/worker: ""
capture:
eth1-nic: interfaces.name=="eth1"
eth1-routes: routes.running.next-hop-interface=="eth1"
br1-routes: capture.eth1-routes | routes.running.next-hop-interface := "br1"
desiredState:
interfaces:
- name: br1
description: Linux bridge with eth1 as a port
type: linux-bridge
state: up
ipv4: "{{ capture.eth1-nic.interfaces.0.ipv4 }}"
bridge:
options:
stp:
enabled: false
port:
- name: eth1
routes:
config: "{{ capture.br1-routes.routes.running }}"
apiVersion : nmstate.io/v1
kind : NodeNetworkConfigurationPolicy
metadata :
name : br1- eth1- copy- ipv4- policy
1
spec :
nodeSelector :
2
node-role.kubernetes.io/worker : ""
capture :
eth1-nic : interfaces.name=="eth1"
3
eth1-routes : routes.running.next- hop- interface=="eth1"
br1-routes : capture.eth1- routes | routes.running.next- hop- interface : = "br1"
desiredState :
interfaces :
- name : br1
description : Linux bridge with eth1 as a port
type : linux- bridge
4
state : up
ipv4 : "{{ capture.eth1-nic.interfaces.0.ipv4 }}"
5
bridge :
options :
stp :
enabled : false
port :
- name : eth1
6
routes :
config : "{{ capture.br1-routes.routes.running }}"
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow