From c11ab02ab1ce8d8471d7b7b044ba28292770c850 Mon Sep 17 00:00:00 2001 From: ganglv <88995770+ganglyu@users.noreply.github.com> Date: Wed, 12 Jan 2022 15:25:38 +0800 Subject: [PATCH] [sonic-cfggen]: Add bgp asn for yang validation (#9640) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Why I did it Config db schema generated by minigraph can’t pass yang validation, bgp_asn must not be None. How I did it Update sampe-voq-graph.xml to add bgp_asn. How to verify it Build sonic-config-engine. Run command 'sonic-cfggen -m tests/sample-voq-graph.xml -p tests/voq-sample-port-config.ini --print-data', and check bgp_asn. Signed-off-by: Gang Lv ganglv@microsoft.com --- src/sonic-config-engine/tests/sample-voq-graph.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/sonic-config-engine/tests/sample-voq-graph.xml b/src/sonic-config-engine/tests/sample-voq-graph.xml index dcc0a1f02692..5257efd4b0ae 100644 --- a/src/sonic-config-engine/tests/sample-voq-graph.xml +++ b/src/sonic-config-engine/tests/sample-voq-graph.xml @@ -1,7 +1,14 @@ - + + + 65100 + linecard-1 + + + +