[sonic-cfggen]: Update test minigraph to add deployment_id (#9593)

Why I did it
Config db schema generated from test minigraph can't pass yang validation.

How I did it
Update minigraph xml to add DeploymentId.

How to verify it
Build sonic-config-engine.
Run command 'sonic-cfggen -m xxx.xml --print-data', and check deployment_id field.

Signed-off-by: Gang Lv ganglv@microsoft.com
This commit is contained in:
ganglv 2021-12-21 09:14:44 +08:00 committed by Judy Joseph
parent c875cc65f5
commit c1bef313e2
6 changed files with 80 additions and 0 deletions

View File

@ -202,6 +202,21 @@
</Device> </Device>
</Devices> </Devices>
</PngDec> </PngDec>
<MetadataDeclaration>
<Devices xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:DeviceMetadata>
<a:Name>switch-t0</a:Name>
<a:Properties>
<a:DeviceProperty>
<a:Name>DeploymentId</a:Name>
<a:Reference i:nil="true"/>
<a:Value>1</a:Value>
</a:DeviceProperty>
</a:Properties>
</a:DeviceMetadata>
</Devices>
<Properties xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
</MetadataDeclaration>
<Hostname>switch-t0</Hostname> <Hostname>switch-t0</Hostname>
<HwSku>Force10-S6000</HwSku> <HwSku>Force10-S6000</HwSku>
</DeviceMiniGraph> </DeviceMiniGraph>

View File

@ -462,6 +462,11 @@
<a:DeviceMetadata> <a:DeviceMetadata>
<a:Name>switch-t0</a:Name> <a:Name>switch-t0</a:Name>
<a:Properties> <a:Properties>
<a:DeviceProperty>
<a:Name>DeploymentId</a:Name>
<a:Reference i:nil="true"/>
<a:Value>1</a:Value>
</a:DeviceProperty>
<a:DeviceProperty> <a:DeviceProperty>
<a:Name>ResourceType</a:Name> <a:Name>ResourceType</a:Name>
<a:Reference i:nil="true"/> <a:Reference i:nil="true"/>

View File

@ -465,6 +465,21 @@
</ManagementInterfaces> </ManagementInterfaces>
</DeviceInfo> </DeviceInfo>
</DeviceInfos> </DeviceInfos>
<MetadataDeclaration>
<Devices xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:DeviceMetadata>
<a:Name>switch-t0</a:Name>
<a:Properties>
<a:DeviceProperty>
<a:Name>DeploymentId</a:Name>
<a:Reference i:nil="true"/>
<a:Value>1</a:Value>
</a:DeviceProperty>
</a:Properties>
</a:DeviceMetadata>
</Devices>
<Properties xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
</MetadataDeclaration>
<Hostname>switch-t0</Hostname> <Hostname>switch-t0</Hostname>
<HwSku>Force10-S6000</HwSku> <HwSku>Force10-S6000</HwSku>
</DeviceMiniGraph> </DeviceMiniGraph>

View File

@ -124,6 +124,21 @@
</Device> </Device>
</Devices> </Devices>
</PngDec> </PngDec>
<MetadataDeclaration>
<Devices xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:DeviceMetadata>
<a:Name>OCPSCH01040DDLF</a:Name>
<a:Properties>
<a:DeviceProperty>
<a:Name>DeploymentId</a:Name>
<a:Reference i:nil="true"/>
<a:Value>1</a:Value>
</a:DeviceProperty>
</a:Properties>
</a:DeviceMetadata>
</Devices>
<Properties xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
</MetadataDeclaration>
<Hostname>OCPSCH01040DDLF</Hostname> <Hostname>OCPSCH01040DDLF</Hostname>
<HwSku>Force10-Z9100</HwSku> <HwSku>Force10-Z9100</HwSku>
</DeviceMiniGraph> </DeviceMiniGraph>

View File

@ -457,6 +457,21 @@
</ManagementInterfaces> </ManagementInterfaces>
</DeviceInfo> </DeviceInfo>
</DeviceInfos> </DeviceInfos>
<MetadataDeclaration>
<Devices xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:DeviceMetadata>
<a:Name>switch-t0</a:Name>
<a:Properties>
<a:DeviceProperty>
<a:Name>DeploymentId</a:Name>
<a:Reference i:nil="true"/>
<a:Value>1</a:Value>
</a:DeviceProperty>
</a:Properties>
</a:DeviceMetadata>
</Devices>
<Properties xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
</MetadataDeclaration>
<Hostname>switch-t0</Hostname> <Hostname>switch-t0</Hostname>
<HwSku>Force10-S6000</HwSku> <HwSku>Force10-S6000</HwSku>
</DeviceMiniGraph> </DeviceMiniGraph>

View File

@ -549,6 +549,21 @@
</a:LinkMetadata> </a:LinkMetadata>
</Link> </Link>
</LinkMetadataDeclaration> </LinkMetadataDeclaration>
<MetadataDeclaration>
<Devices xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:DeviceMetadata>
<a:Name>switch-t0</a:Name>
<a:Properties>
<a:DeviceProperty>
<a:Name>DeploymentId</a:Name>
<a:Reference i:nil="true"/>
<a:Value>1</a:Value>
</a:DeviceProperty>
</a:Properties>
</a:DeviceMetadata>
</Devices>
<Properties xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
</MetadataDeclaration>
<Hostname>switch-t0</Hostname> <Hostname>switch-t0</Hostname>
<HwSku>Force10-S6000</HwSku> <HwSku>Force10-S6000</HwSku>
</DeviceMiniGraph> </DeviceMiniGraph>