Skip to content

Commit 9167f9d

Browse files
lguohanyxieca
authored andcommitted
[aboot]: preserve snmp.yml and acl.json for eos to sonic fast reboot (#3716)
1 parent b9b56c9 commit 9167f9d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

files/Aboot/boot0.j2

+3-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ clean_flash() {
9292
[ $f != "$cmdline_base" ] &&
9393
[ $f != "aquota.user" ] &&
9494
[ $f != "old_config" ] &&
95-
[ $f != "minigraph.xml" ]
95+
[ $f != "minigraph.xml" ] &&
96+
[ $f != "snmp.yml" ] &&
97+
[ $f != "acl.json" ]
9698
then
9799
rm -rf "$target_path/$f"
98100
fi

files/image_config/platform/rc.local

+2
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ if [ -f $FIRST_BOOT_FILE ]; then
223223
elif [ -f /host/minigraph.xml ]; then
224224
mkdir -p /etc/sonic/old_config
225225
mv /host/minigraph.xml /etc/sonic/old_config/
226+
[ -f /host/acl.json ] && mv /host/acl.json /etc/sonic/old_config/
227+
[ -f /host/snmp.yml ] && mv /host/snmp.yml /etc/sonic/old_config/
226228
touch /tmp/pending_config_migration
227229
elif [ -n "$migration" ] && [ -f /host/migration/minigraph.xml ]; then
228230
mkdir -p /etc/sonic/old_config

0 commit comments

Comments
 (0)