Correct IP address
parent
86b64d6454
commit
b03b646aa2
|
|
@ -252,7 +252,7 @@ routing-options {
|
||||||
session-mode automatic;
|
session-mode automatic;
|
||||||
}
|
}
|
||||||
{% for interface in device.interfaces.filter(cable__isnull=False) %}
|
{% for interface in device.interfaces.filter(cable__isnull=False) %}
|
||||||
neighbor {{ interface.connected_endpoints[0].addresses.first().address.ip }};
|
neighbor {{ interface.connected_endpoints[0].ip_addresses.first().address.ip }};
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
}
|
}
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
@ -272,7 +272,7 @@ routing-options {
|
||||||
multiple-as;
|
multiple-as;
|
||||||
}
|
}
|
||||||
{% for interface in device.interfaces.filter(cable__isnull=False) %}
|
{% for interface in device.interfaces.filter(cable__isnull=False) %}
|
||||||
neighbor {{ interface.connected_endpoints[0].addresses.first().address.ip }} {
|
neighbor {{ interface.connected_endpoints[0].ip_addresses.first().address.ip }} {
|
||||||
peer-as {{ interface.connected_endpoints[0].local_context_data['underlay_as'] }};
|
peer-as {{ interface.connected_endpoints[0].local_context_data['underlay_as'] }};
|
||||||
}
|
}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue