[sonic-cfggen]: Fix missing vlan interface (#9639)

Why I did it
Config db schema generated by minigraph can’t pass yang validation, there's no Vlan31 in 'VLAN' table.

How I did it
Update test minigraph to add vlan interface.

How to verify it
Build sonic-yang-models.
Run command 'sonic-cfggen -m tests/fg-ecmp-sample-minigraph.xml -p tests/mellanox-sample-port-config.ini --print-data', and run yang validation.

Signed-off-by: Gang Lv ganglv@microsoft.com
This commit is contained in:
ganglv 2022-01-06 02:10:46 +08:00 committed by Judy Joseph
parent 664f6d43cd
commit 5026e22333

View File

@ -230,6 +230,17 @@
<Tag>1000</Tag> <Tag>1000</Tag>
<Subnets>192.168.0.0/21</Subnets> <Subnets>192.168.0.0/21</Subnets>
</VlanInterface> </VlanInterface>
<VlanInterface>
<Name>Vlan31</Name>
<AttachTo>etp26</AttachTo>
<NoDhcpRelay>False</NoDhcpRelay>
<StaticDHCPRelay>0.0.0.0/0</StaticDHCPRelay>
<Type i:nil="true" />
<DhcpRelays>200.200.0.48</DhcpRelays>
<VlanID>31</VlanID>
<Tag>31</Tag>
<Subnets>200.200.0.0/21</Subnets>
</VlanInterface>
</VlanInterfaces> </VlanInterfaces>
<IPInterfaces> <IPInterfaces>
<IPInterface> <IPInterface>