Fix logic bug

netbox
Daniel Ankers 2024-07-04 14:20:02 +01:00
parent 3809e48b77
commit 3bd19cd510
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ chassis {
{% endif %}
{% if interface.ip_addresses.count() > 0 %}
unit 0 {
{% if (interface.link_peers) and (interface.link_peers[0].device.role.name = 'Provider Core') %}
{% if (interface.link_peers) and (interface.link_peers[0].device.role.name == 'Provider Core') %}
vlan-id 1;
{% endif %}
family inet {