From 67e40b5531bd9836264608b9fefcc74bdb277243 Mon Sep 17 00:00:00 2001 From: ganglv <88995770+ganglyu@users.noreply.github.com> Date: Tue, 21 Dec 2021 09:14:44 +0800 Subject: [PATCH] [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 --- src/sonic-config-engine/tests/pc-test-graph.xml | 15 +++++++++++++++ .../tests/sample-graph-resource-type.xml | 5 +++++ .../tests/sample-graph-subintf.xml | 15 +++++++++++++++ src/sonic-config-engine/tests/sample_graph.xml | 15 +++++++++++++++ .../tests/simple-sample-graph.xml | 15 +++++++++++++++ src/sonic-config-engine/tests/t0-sample-graph.xml | 15 +++++++++++++++ 6 files changed, 80 insertions(+) diff --git a/src/sonic-config-engine/tests/pc-test-graph.xml b/src/sonic-config-engine/tests/pc-test-graph.xml index 6709d65c49..814686d8ff 100644 --- a/src/sonic-config-engine/tests/pc-test-graph.xml +++ b/src/sonic-config-engine/tests/pc-test-graph.xml @@ -202,6 +202,21 @@ + + + + switch-t0 + + + DeploymentId + + 1 + + + + + + switch-t0 Force10-S6000 diff --git a/src/sonic-config-engine/tests/sample-graph-resource-type.xml b/src/sonic-config-engine/tests/sample-graph-resource-type.xml index ab486b51cb..930bc3a968 100644 --- a/src/sonic-config-engine/tests/sample-graph-resource-type.xml +++ b/src/sonic-config-engine/tests/sample-graph-resource-type.xml @@ -462,6 +462,11 @@ switch-t0 + + DeploymentId + + 1 + ResourceType diff --git a/src/sonic-config-engine/tests/sample-graph-subintf.xml b/src/sonic-config-engine/tests/sample-graph-subintf.xml index 06a6cf2fd6..63539eecd3 100644 --- a/src/sonic-config-engine/tests/sample-graph-subintf.xml +++ b/src/sonic-config-engine/tests/sample-graph-subintf.xml @@ -465,6 +465,21 @@ + + + + switch-t0 + + + DeploymentId + + 1 + + + + + + switch-t0 Force10-S6000 diff --git a/src/sonic-config-engine/tests/sample_graph.xml b/src/sonic-config-engine/tests/sample_graph.xml index 47efabf7d8..e69c6e028e 100644 --- a/src/sonic-config-engine/tests/sample_graph.xml +++ b/src/sonic-config-engine/tests/sample_graph.xml @@ -124,6 +124,21 @@ + + + + OCPSCH01040DDLF + + + DeploymentId + + 1 + + + + + + OCPSCH01040DDLF Force10-Z9100 diff --git a/src/sonic-config-engine/tests/simple-sample-graph.xml b/src/sonic-config-engine/tests/simple-sample-graph.xml index e1c4b87fc3..c015869e4a 100644 --- a/src/sonic-config-engine/tests/simple-sample-graph.xml +++ b/src/sonic-config-engine/tests/simple-sample-graph.xml @@ -457,6 +457,21 @@ + + + + switch-t0 + + + DeploymentId + + 1 + + + + + + switch-t0 Force10-S6000 diff --git a/src/sonic-config-engine/tests/t0-sample-graph.xml b/src/sonic-config-engine/tests/t0-sample-graph.xml index c06cc708c1..f0da951496 100644 --- a/src/sonic-config-engine/tests/t0-sample-graph.xml +++ b/src/sonic-config-engine/tests/t0-sample-graph.xml @@ -549,6 +549,21 @@ + + + + switch-t0 + + + DeploymentId + + 1 + + + + + + switch-t0 Force10-S6000