Chapter 8 Data Models and Dynamic Templates

For diagrams, tables, or exact code formatting, .

JOHN W. CAPOBIANCOPRINTED PAGE 149
switchport nonegotiate 
{%              else %} 
 no switchport 
{%              endif %} 
{%          endif %} 
{%          if platform_port_channels[platform_port_channel].guard_root is defined %} 
 spanning-tree guard root 
{%          endif %} 
{%          if platform_port_channels[platform_port_channel].ip_address is defined %} 
{%              if platform_port_channels[platform_port_channel].ip_address == "false" 
%} 
 no ip address 
{%              endif %} 
{%          endif %} 
{%          if platform_port_channels[platform_port_channel].vsl is defined %} 
 switch virtual link {{ platform_port_channels[platform_port_channel].vsl }} 
{%             if platform_defaults.type == "6000" %} 
 no platform qos channel-consistency 
{%             else %} 
{%             endif %} 
{%          endif %} 
{%          for member in 
platform_port_channels[platform_port_channel][inventory_hostname].members %} 
interface {{ member }} 
 description {{ platform_port_channels[platform_port_channel].description }} 
{%              if 
platform_port_channels[platform_port_channel][inventory_hostname].members[member].swit
chport is defined %} 
{%                  if 
platform_port_channels[platform_port_channel][inventory_hostname].members[member].swit
chport == false %} 
 no switchport  
{%                  else %} 
 switchport  
{%                  endif %} 
{%              endif %} 
{%              if platform_port_channels[platform_port_channel].switchport_mode is 
defined %} 
 switchport mode {{ platform_port_channels[platform_port_channel].switchport_mode }} 
 switchport nonegotiate 
{%              endif %} 
{%              if 
platform_port_channels[platform_port_channel][inventory_hostname].members[member].ip_a
ddress is defined %} 
{%                  if 
platform_port_channels[platform_port_channel][inventory_hostname].members[member].ip_a
ddress == false %} 
 no ip address 
{%                  endif %} 
{%              endif %} 
{%              if platform_port_channels[platform_port_channel].cdp is defined %} 
{%                  if platform_port_channels[platform_port_channel].cdp == false %} 
 no cdp enable 
{%                  endif %} 
{%              endif %} 
{%              if platform_port_channels[platform_port_channel].lldp_transmit is 
defined %}