Chapter 8 Data Models and Dynamic Templates
For diagrams, tables, or exact code formatting, .
JOHN W. CAPOBIANCOPRINTED PAGE 157
power inline never
{% endif %}
{% endif %}
{% endif %}
{% if host_interfaces[host_interface].vrf is defined %}
vrf forwarding {{ host_interfaces[host_interface].vrf }}
{% endif %}
{% if host_interfaces[host_interface].ip_address is defined %}
{% if host_interfaces[host_interface].ip_address == false %}
no ip address
{% else %}
ip address {{ host_interfaces[host_interface].ip_address }}
{% endif %}
{% endif %}
{% if host_interfaces[host_interface].trust_dscp is defined %}
mls qos trust dscp
{% endif %}
{% if host_interfaces[host_interface].cdp_enable is defined %}
{% if host_interfaces[host_interface].cdp_enable == false %}
no cdp enable
{% endif %}
{% endif %}
{% if host_interfaces[host_interface].portfast_edge is defined %}
spanning-tree portfast edge
{% endif %}
{% if host_interfaces[host_interface].bpdu_guard is defined %}
spanning-tree bpduguard enable
{% endif %}
{% if host_interfaces[host_interface].guard_root is defined %}
spanning-tree guard root
{% endif %}
{% if host_interfaces[host_interface].description is defined %}
description {{ host_interfaces[host_interface].description }}
{% endif %}
{% if host_interfaces[host_interface].mac_sticky is defined %}
switchport port-security violation restrict
switchport port-security mac-address sticky
switchport port-security aging time 720
switchport port-security aging type inactivity
switchport port-security
{% endif %}
{% if platform_defaults.type == 3750 or platform_defaults.type == 2960 %}
{% if host_interfaces[host_interface].srr_queue_share is defined %}
srr-queue bandwidth share {{ platform_qos.platform_interface_values.srr_queue_share
}}
{% if platform_defaults.type == 2960 %}
srr-queue bandwidth shape {{ platform_qos.platform_interface_values.srr_queue_shape
}}
{% else %}
srr-queue bandwidth shape {{ platform_qos.platform_interface_values.srr_queue_shape
}}
{% endif %}
priority-queue out
{% endif %}
{% endif %}
{% if host_interfaces[host_interface].service_policy is defined %}
{% if platform_defaults.type == 3850 %}