|
13 | 13 | <LinkMetadataDeclaration> |
14 | 14 | <Link xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"> |
15 | 15 | {% endif %} |
16 | | -{% set link_metadata_defined = False %} |
17 | | - |
18 | | -{% if 'dualtor' in topo or |
19 | | - (macsec_card is defined and macsec_card == True and 't2' in topo) %} |
20 | | - {% set link_metadata_defined = True %} |
21 | | -{% endif %} |
22 | | - |
23 | | -{% if device_conn is defined and inventory_hostname in device_conn %} |
24 | | - {% for iface in device_conn[inventory_hostname] %} |
25 | | - {% if 'autoneg' in device_conn[inventory_hostname][iface] and |
26 | | - 'on' in device_conn[inventory_hostname][iface]['autoneg'] %} |
27 | | - {% set link_metadata_defined = True %} |
28 | | - {% endif %} |
29 | | - {% endfor %} |
30 | | -{% endif %} |
31 | | - |
32 | | -{% if link_metadata_defined %} |
33 | | - <LinkMetadataDeclaration> |
34 | | - <Link xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"> |
35 | | -{% endif %} |
36 | | - |
37 | 16 | {% if 'dualtor' in topo %} |
38 | 17 | {% for tunnel in tunnel_configs %} |
39 | 18 | <a:LinkMetadata> |
|
83 | 62 | {% for iface_name in device_conn[inventory_hostname].keys() %} |
84 | 63 | {% if iface_name in device_conn[inventory_hostname] and 'autoneg' in device_conn[inventory_hostname][iface_name] %} |
85 | 64 | {% if 'on' in device_conn[inventory_hostname][iface_name]['autoneg'] %} |
86 | | - |
87 | | -{% if device_conn is defined and inventory_hostname in device_conn %} |
88 | | -{% for iface_name in device_conn[inventory_hostname].keys() %} |
89 | | - {% if iface_name in device_conn[inventory_hostname] and 'autoneg' in device_conn[inventory_hostname][iface_name] %} |
90 | | - {% if 'on' in device_conn[inventory_hostname][iface_name]['autoneg'] %} |
91 | 65 | <a:LinkMetadata> |
92 | 66 | <a:Name i:nil="true"/> |
93 | 67 | <a:Properties> |
|
96 | 70 | <a:Value>True</a:Value> |
97 | 71 | </a:DeviceProperty> |
98 | 72 | {% if msft_an_enabled is defined %} |
99 | | - {% if msft_an_enabled is defined %} |
100 | 73 | <a:DeviceProperty> |
101 | 74 | <a:Name>FECDisabled</a:Name> |
102 | 75 | <a:Reference i:nil="true"/> |
|
113 | 86 | {% if ns.link_metadata_defined %} |
114 | 87 | </Link> |
115 | 88 | </LinkMetadataDeclaration> |
116 | | - {% endif %} |
117 | | - </a:Properties> |
118 | | - <a:Key>{{ device_conn[inventory_hostname][iface_name]['peerdevice'] }}:{{ device_conn[inventory_hostname][iface_name]['peerport'] }};{{ inventory_hostname }}:{{ port_name_map[iface_name] }}</a:Key> |
119 | | - </a:LinkMetadata> |
120 | | - {% endif %} |
121 | | - {% endif %} |
122 | | -{% endfor %} |
123 | | -{% endif %} |
124 | | - |
125 | | -{% if link_metadata_defined %} |
126 | | - </Link> |
127 | | - </LinkMetadataDeclaration> |
128 | 89 | {% endif %} |
0 commit comments