Chapter 8 Data Models and Dynamic Templates
For diagrams, tables, or exact code formatting, .
JOHN W. CAPOBIANCOPRINTED PAGE 143
message_digest: true
stub: true
networks:
"1":
value:
- "172.18.100.0 0.0.0.255"
- "172.19.100.0 0.0.0.255"
GREEN_Zone:tag: 10
message_digest: true
stub: true
networks:
"10":
value:
- "10.101.100.0 0.0.0.255"
RED_Zone:
tag: 20
message_digest: true
stub: true
networks:
"20":
value:
- "10.102.100.0 0.0.0.255"
BLUE_Zone:
tag: 30
message_digest: true
stub: true
networks:
"30":
value:
- "10.103.0.0 0.0.255.255"
SECURITY:
tag: 50
message_digest: true
stub: true
networks:
"50":
value:
- "10.200.100.0 0.0.0.255"
OSPF
{% if platform_defaults.type == 6000 or platform_defaults.type == 4000 %}
{% for host_vrf in host_vrfs %}
{% if host_vrf == "global" %}
router ospf {{ host_vrfs[host_vrf].tag }}
{% else %}
router ospf {{ host_vrfs[host_vrf].tag }} vrf {{ host_vrf }}
{% endif %}
{% if host_defaults.hostname == "CORE" %}
router-id 1.1.1.{{ host_vrfs[host_vrf].tag }}
{% else %}