Custom NVUE Configuration Snippets
Netris allows administrators to deploy custom configuration to switches running Cumulus Linux using NVUE configuration snippets. These snippets are YAML files that define specific configurations to be applied to the network devices.
Example:
Stage desired configuration using NVUE commands
nv set system snmp-server state enabled
nv set system snmp-server listening-address all vrf mgmt
nv set system snmp-server listening-address all-v6 vrf mgmt
nv set system snmp-server readonly-community clear_text access any
Retreive the YAML version of the configuration diff
nv config diff
- set:
system:
snmp-server:
listening-address:
all:
vrf: mgmt
all-v6:
vrf: mgmt
readonly-community:
$nvsec$bc2dea2ea717f9e9aef0265a8f09f949:
access:
any: {}
state: enabled
Create a file under
/opt/netris/etc/nvue/with the YAML content you retrieved in step 2. For example, create the file/opt/netris/etc/nvue/50-snmp.yamlwith the content above.
Check if the configuration on the file is correct:
nv config patch /opt/netris/etc/nvue/<file>
nv config diff
Check for any configuration errors by applying manually
nv config apply