Global
Global configuration defines network-wide settings that apply to all NX-OS devices unless explicitly overridden at the device group or device level, providing the foundation layer of the configuration hierarchy. It supports variable definitions for template-based parameterization and template assignments that enable reusable configuration patterns across the entire infrastructure. Global configuration is ideal for establishing consistent baseline settings such as NTP servers, logging parameters, and common routing policies that should be uniform across all managed devices.
Diagram
Section titled “Diagram”Classes
Section titled “Classes”global (nxos)
Section titled “global (nxos)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| variables | Map | No | ||
| templates | List | String | No |
Examples
Section titled “Examples”Example 1: Define global variables for use across all devices in a VXLAN fabric
nxos: global: variables: anycast_ip: 10.1.101.1 ntp_server_1: 10.50.100.1 ntp_server_2: 10.50.100.2 syslog_server: 10.50.100.2 dns_server_1: 10.50.100.20 dns_server_2: 10.50.100.21 tacacs_server: 10.50.100.10Example 2: Global configuration with shared system features and OSPF/PIM baseline applied to all devices
nxos: global: variables: anycast_ip: 10.1.101.1 configuration: feature: bfd: true bgp: true evpn: true fabric_forwarding: true interface_vlan: true nv_overlay: true ospf: true pim: true vn_segment_vlan_based: true system: hostname: ${hostname} mtu: 9216 interfaces: loopbacks: - id: 0 interface_groups: [LOOPBACK_INTERFACE] ip_address: ${lo0_ip}/32 routing: ospf_processes: - name: "1" areas: - id: 0.0.0.0 pim: anycast_rp_local_interface_type: loopback anycast_rp_local_interface_id: "0" anycast_rp_source_interface_type: loopback anycast_rp_source_interface_id: "0" rps: - address: ${anycast_ip}Example 3: Global configuration with template assignments for reusable service provisioning
nxos: global: variables: anycast_ip: 10.1.101.1 ntp_server_1: 10.50.100.1 ntp_server_2: 10.50.100.2 configuration: feature: ospf: true bgp: true pim: true system: hostname: ${hostname} mtu: 9216 templates: - GLOBAL_NTP - GLOBAL_LOGGING