Skip to content

Commit

Permalink
More Changes
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
  • Loading branch information
abdosi committed Oct 22, 2024
1 parent 1ae7c24 commit cfdf077
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44009,7 +44009,7 @@
<a:DeviceProperty>
<a:Name>MacSecEnabled</a:Name>
<a:Reference i:nil="true" />
<a:Value>True</a:Value>
<a:Value>False</a:Value>
</a:DeviceProperty>
<a:DeviceProperty>
<a:Name>OsVersion</a:Name>
Expand Down Expand Up @@ -48335,4 +48335,4 @@
<HwSku>Sonic-400g-lc-sku</HwSku>
<Version>1.0.1388.35297&#xD;
</Version>
</DeviceMiniGraph>
</DeviceMiniGraph>
9 changes: 6 additions & 3 deletions src/sonic-config-engine/tests/test_chassis_cfggen.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ def test_device_metadata(self):
'switch_type': 'voq',
'switch_id': 20,
'max_cores': 64,
'slice_type': 'AZNG_Production'})
'slice_type': 'AZNG_Production',
'sub_type': 'UpstreamLC'})

def test_port(self):
argument = ['-m', self.sample_graph, '-p',
Expand Down Expand Up @@ -445,7 +446,8 @@ def test_device_metadata(self):
'deployment_id': '3',
'cluster': 'TestbedForstr-sonic',
'switch_type': 'voq',
'max_cores': 64})
'max_cores': 64,
'sub_type': 'DownstreamLC'})

def test_device_metadata_for_namespace(self):
argument = [
Expand Down Expand Up @@ -922,7 +924,8 @@ def test_device_metadata(self):
"cluster": "TestbedForstr-sonic",
"switch_type": "fabric",
"sub_role": "fabric",
"max_cores": 64
"max_cores": 64,
"sub_type": "Supervisor"
}
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
}
}
},
"DEVICE_METADATA_VALID_SUBTYPE": {
"DEVICE_METADATA_VALID_SUBTYPE0": {
"sonic-device_metadata:sonic-device_metadata": {
"sonic-device_metadata:DEVICE_METADATA": {
"sonic-device_metadata:localhost": {
Expand All @@ -265,6 +265,33 @@
}
}
},
"DEVICE_METADATA_VALID_SUBTYPE1": {
"sonic-device_metadata:sonic-device_metadata": {
"sonic-device_metadata:DEVICE_METADATA": {
"sonic-device_metadata:localhost": {
"subtype": "Supervisor"
}
}
}
},
"DEVICE_METADATA_VALID_SUBTYPE2": {
"sonic-device_metadata:sonic-device_metadata": {
"sonic-device_metadata:DEVICE_METADATA": {
"sonic-device_metadata:localhost": {
"subtype": "UpstreamLC"
}
}
}
},
"DEVICE_METADATA_VALID_SUBTYPE3": {
"sonic-device_metadata:sonic-device_metadata": {
"sonic-device_metadata:DEVICE_METADATA": {
"sonic-device_metadata:localhost": {
"subtype": "DownstreamLC"
}
}
}
},
"DEVICE_METADATA_INVALID_SUBTYPE": {
"sonic-device_metadata:sonic-device_metadata": {
"sonic-device_metadata:DEVICE_METADATA": {
Expand Down

0 comments on commit cfdf077

Please sign in to comment.