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) %}
|
||||
routing-options {
|
||||
{% if device.primary_ip4 %}
|
||||
router-id {{ device.primary_ip4.address.ip }};
|
||||
{% endif %}
|
||||
{% if overlay_as %}
|
||||
autonomous-system {{ overlay_as }};
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue