Chapter 8 Data Models and Dynamic Templates

For diagrams, tables, or exact code formatting, .

JOHN W. CAPOBIANCOPRINTED PAGE 127

apply to all devices in the [CAMPUS-DISTRIBUTION] group in hosts.ini these variables are processed first and, unless overridden by another variable, such as a host variable, will remain the configured value.

The next example covers the CAMPUS-DISTRIBUTION.YML file. This is the data model dictionary for all devices in the [CAMPUS-DISTRIBUTION] group in the hosts.ini file. Enforce the following standards to all devices that act as distribution switches on the network:

 Standard Cisco Catalyst 4500 hardware platform.  Standard QoS model using MQC.  Standard port-channel 1 uplink to core.  Standard port-channel 50 and 60 for VSS.  Standard interface for Dual Active Detection (DAD) port.  Standard port-channel 100 for legacy, spanned, layer 2 VLANS to the core.  Unknown port-channel numbers / access switches downstream (variable or non-standard).

--- 
 
platform_defaults: 
  type: 4000  
 
platform_qos: 
  class_maps: 
    Qos-Scavenger: 
       dscp: 
          - cs1 
 
    Qos-Priority: 
       dscp: 
          - ef 
          - cs5 
          - cs4 
     
    Qos-SECURITY+NTWK-CTRL: 
       dscp: 
          - cs2 
          - cs3 
          - cs6 
          - cs7 
 
  policy_maps: 
    QoS-OUT-PO-Members: 
      classes: 
        Qos-Priority: 
          priority: true 
 
        Qos-SECURITY: 
          bandwidth: 25 
 
        Qos-Scavenger: 
          bandwidth: 5 
 
        class-default: 
          bandwidth: 60 
          dbl: true