Skip to content

Commit e4f1f42

Browse files
committed
rebase
Signed-off-by: Vaibhav Dahiya <[email protected]>
1 parent 1945345 commit e4f1f42

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

ansible/templates/minigraph_link_meta.j2

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,6 @@
1313
<LinkMetadataDeclaration>
1414
<Link xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
1515
{% 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-
3716
{% if 'dualtor' in topo %}
3817
{% for tunnel in tunnel_configs %}
3918
<a:LinkMetadata>
@@ -83,11 +62,6 @@
8362
{% for iface_name in device_conn[inventory_hostname].keys() %}
8463
{% if iface_name in device_conn[inventory_hostname] and 'autoneg' in device_conn[inventory_hostname][iface_name] %}
8564
{% 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'] %}
9165
<a:LinkMetadata>
9266
<a:Name i:nil="true"/>
9367
<a:Properties>
@@ -96,7 +70,6 @@
9670
<a:Value>True</a:Value>
9771
</a:DeviceProperty>
9872
{% if msft_an_enabled is defined %}
99-
{% if msft_an_enabled is defined %}
10073
<a:DeviceProperty>
10174
<a:Name>FECDisabled</a:Name>
10275
<a:Reference i:nil="true"/>
@@ -113,16 +86,4 @@
11386
{% if ns.link_metadata_defined %}
11487
</Link>
11588
</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>
12889
{% endif %}

0 commit comments

Comments
 (0)