Cope better with no primary IP4
parent
2617f6bdfe
commit
bb7a882a46
|
|
@ -301,7 +301,9 @@ forwarding-options {
|
||||||
|
|
||||||
{% macro routingoptionssection(device, overlay_as = None, gateway = None, routes = None) %}
|
{% macro routingoptionssection(device, overlay_as = None, gateway = None, routes = None) %}
|
||||||
routing-options {
|
routing-options {
|
||||||
|
{% if device.primary_ip4 %}
|
||||||
router-id {{ device.primary_ip4.address.ip }};
|
router-id {{ device.primary_ip4.address.ip }};
|
||||||
|
{% endif %}
|
||||||
{% if overlay_as %}
|
{% if overlay_as %}
|
||||||
autonomous-system {{ overlay_as }};
|
autonomous-system {{ overlay_as }};
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue