2017-03-06 14:41:26 -06:00
|
|
|
SERVERS="{{ dhcp_servers | join(' ') }}"
|
2017-01-27 01:36:58 -06:00
|
|
|
|
2017-05-30 20:29:18 -05:00
|
|
|
INTERFACES="
|
|
|
|
{%- set add_preceding_space = { 'flag': False } %}
|
|
|
|
{%- for interface in minigraph_interfaces %}
|
|
|
|
{%- if interface['addr'] | ipv4 %}
|
|
|
|
{%- if add_preceding_space.flag %} {% endif %}
|
|
|
|
{{ interface['attachto'] }}
|
|
|
|
{%- set _dummy = add_preceding_space.update({'flag': True}) %}
|
|
|
|
{%- endif %}
|
|
|
|
{%- endfor %}
|
|
|
|
{%- for vlan_interface in minigraph_vlan_interfaces %}
|
|
|
|
{%- if vlan_interface['addr'] | ipv4 %}
|
|
|
|
{%- if add_preceding_space.flag %} {% endif %}
|
|
|
|
{{ vlan_interface['attachto'] }}
|
|
|
|
{%- set _dummy = add_preceding_space.update({'flag': True}) %}
|
|
|
|
{%- endif %}
|
|
|
|
{%- endfor %}
|
|
|
|
{%- for pc_interface in minigraph_portchannel_interfaces %}
|
|
|
|
{%- if pc_interface['addr'] | ipv4 %}
|
|
|
|
{%- if add_preceding_space.flag %} {% endif %}
|
|
|
|
{{ pc_interface['attachto'] }}
|
|
|
|
{%- set _dummy = add_preceding_space.update({'flag': True}) %}
|
|
|
|
{%- endif %}
|
|
|
|
{%- endfor %}"
|
2017-01-27 01:36:58 -06:00
|
|
|
|
|
|
|
# '-a' option provides option 82 circuit id information
|
|
|
|
OPTIONS="-a"
|
|
|
|
|