|
64 | 64 | {%- set features = [("bgp", "{% if not DEVICE_RUNTIME_METADATA['ETHERNET_PORTS_PRESENT'] or ('CHASSIS_METADATA' in DEVICE_RUNTIME_METADATA and DEVICE_RUNTIME_METADATA['CHASSIS_METADATA']['module_type'] in ['supervisor']) %}disabled{% else %}enabled{% endif %}", false, "enabled"), |
65 | 65 | ("database", "always_enabled", false, "always_enabled"), |
66 | 66 | ("lldp", "enabled", true, "enabled"), |
67 | | - ("pmon", "enabled", "{% if 'type' in DEVICE_METADATA['localhost'] and 'SpineRouter' in DEVICE_METADATA['localhost']['type'] %}False{% else %}True{% endif %}", "enabled"), |
| 67 | + ("pmon", "enabled", "{% if 'type' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['type'] == 'SpineRouter' %}False{% else %}True{% endif %}", "enabled"), |
68 | 68 | ("snmp", "enabled", true, "enabled"), |
69 | 69 | ("swss", "enabled", false, "enabled"), |
70 | 70 | ("syncd", "enabled", false, "enabled")] %} |
|
84 | 84 | {% do features.append(("restapi", "enabled", false, "enabled")) %} |
85 | 85 | {%- endif %} |
86 | 86 | {%- if include_sflow == "y" %}{% do features.append(("sflow", "disabled", true, "enabled")) %}{% endif %} |
87 | | -{%- if include_macsec == "y" %}{% do features.append(("macsec", "{% if DEVICE_RUNTIME_METADATA['MACSEC_SUPPORTED'] %}enabled{% else %}disabled{% endif %}", false, "enabled")) %}{% endif %} |
| 87 | +{%- if include_macsec == "y" %}{% do features.append(("macsec", "{% if 'type' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['type'] == 'SpineRouter' and DEVICE_RUNTIME_METADATA['MACSEC_SUPPORTED'] %}enabled{% else %}disabled{% endif %}", false, "enabled")) %}{% endif %} |
88 | 88 | {%- if include_system_gnmi == "y" %}{% do features.append(("gnmi", "enabled", true, "enabled")) %}{% endif %} |
89 | 89 | {%- if include_system_telemetry == "y" %}{% do features.append(("telemetry", "enabled", true, "enabled")) %}{% endif %} |
90 | 90 | {%- if include_system_eventd == "y" and BUILD_REDUCE_IMAGE_SIZE == "y" %} |
|
0 commit comments