Skip to content

Instantly share code, notes, and snippets.

@ashisha2307
Created November 15, 2024 18:46
Show Gist options
  • Save ashisha2307/6a86a0bcb05fe8c26c498f5fda3218a4 to your computer and use it in GitHub Desktop.
Save ashisha2307/6a86a0bcb05fe8c26c498f5fda3218a4 to your computer and use it in GitHub Desktop.
bond0-bridge-vlan
apiVersion: nmstate.io/v1
kind: NodeNetworkConfigurationPolicy
metadata:
name: bond0-bridge-vlan
spec:
desiredState:
interfaces:
- bridge:
port:
- name: bond0
stp-hairpin-mode: false
stp-path-cost: 100
stp-priority: 32
vlan:
enable-native: false
mode: trunk
trunk-tags:
- id: 10
- id: 20
- id: 30
- id: 40
lldp:
enabled: true
name: linux-bond-br0
state: up
type: linux-bridge
nodeSelector:
kubernetes.io/hostname: marvel-n1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment