Skip to content

Commit 48a648c

Browse files
authored
[sonic-cfggen]: Fix syslog_server output (#9616)
Why I did it 'SYSLOG_SERVER': {'': {}, '10.0.10.5': {}, '10.0.10.6': {}}, Config db schema generated by minigraph can’t pass yang validation, server address can't be empty. How I did it Update test minigraph to remove wrong configuration. How to verify it Build sonic-config-engine. Run command 'sonic-cfggen -m xxx.xml --print-data', and SYSLOG_SERVERS table. Signed-off-by: Gang Lv [email protected]
1 parent 3aec728 commit 48a648c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/sonic-config-engine/tests/sample-voq-graph.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
<a:DeviceProperty>
110110
<a:Name>SyslogResources</a:Name>
111111
<a:Value>
112-
10.0.10.5;10.0.10.6;
112+
10.0.10.5;10.0.10.6
113113
</a:Value>
114114
</a:DeviceProperty>
115115
<a:DeviceProperty>

src/sonic-config-engine/tests/simple-sample-graph-case.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@
446446
<a:DeviceProperty>
447447
<a:Name>SyslogResources</a:Name>
448448
<a:Value>
449-
10.0.10.5;10.0.10.6;
449+
10.0.10.5;10.0.10.6
450450
</a:Value>
451451
</a:DeviceProperty>
452452
<a:DeviceProperty>

src/sonic-config-engine/tests/simple-sample-graph-metadata.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
245245
<a:DeviceProperty>
246246
<a:Name>SyslogResources</a:Name>
247247
<a:Value>
248-
10.0.10.5;10.0.10.6;
248+
10.0.10.5;10.0.10.6
249249
</a:Value>
250250
</a:DeviceProperty>
251251
<a:DeviceProperty>

0 commit comments

Comments
 (0)