Skip to content

Commit 1945345

Browse files
committed
Merge branch '202411' into dev/vdahiya/fix-con1
Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
2 parents 9675b6f + dcebfa8 commit 1945345

44 files changed

Lines changed: 1470 additions & 2128 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ansible/templates/minigraph_link_meta.j2

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,27 @@
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+
1637
{% if 'dualtor' in topo %}
1738
{% for tunnel in tunnel_configs %}
1839
<a:LinkMetadata>
@@ -62,6 +83,11 @@
6283
{% for iface_name in device_conn[inventory_hostname].keys() %}
6384
{% if iface_name in device_conn[inventory_hostname] and 'autoneg' in device_conn[inventory_hostname][iface_name] %}
6485
{% 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'] %}
6591
<a:LinkMetadata>
6692
<a:Name i:nil="true"/>
6793
<a:Properties>
@@ -70,6 +96,7 @@
7096
<a:Value>True</a:Value>
7197
</a:DeviceProperty>
7298
{% if msft_an_enabled is defined %}
99+
{% if msft_an_enabled is defined %}
73100
<a:DeviceProperty>
74101
<a:Name>FECDisabled</a:Name>
75102
<a:Reference i:nil="true"/>
@@ -86,4 +113,16 @@
86113
{% if ns.link_metadata_defined %}
87114
</Link>
88115
</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>
89128
{% endif %}

ansible/vars/topo_t0-118.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ topology:
158158
four_vlan_a:
159159
Vlan1000:
160160
id: 1000
161-
intfs: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 30, 31, 33, 34, 35]
161+
intfs: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 30, 31, 32, 33, 34, 35]
162162
prefix: 192.168.0.1/23
163163
prefix_v6: fc02:400::1/64
164164
tag: 1000

0 commit comments

Comments
 (0)