This commit is contained in:
parent
e0ef5b9808
commit
5ac1051f8f
@ -422,6 +422,7 @@ start() {
|
|||||||
if [[ $? -ne 0 ]] ; then
|
if [[ $? -ne 0 ]] ; then
|
||||||
echo "sonic-cfggen failed to render asic_table.json"
|
echo "sonic-cfggen failed to render asic_table.json"
|
||||||
echo "$(cat errorlog.txt)"
|
echo "$(cat errorlog.txt)"
|
||||||
|
sonic-cfggen -a '{"DEVICE_METADATA":{"localhost":{"platform":"'$PLATFORM'"}}}' -t /usr/share/sonic/templates/asic_table.j2 > /etc/sonic/asic_table.json
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ ! -f /etc/sonic/peripheral_table.json ] && [ -f /usr/share/sonic/device/$PLATFORM/port_peripheral_config.j2 ]; then
|
if [ ! -f /etc/sonic/peripheral_table.json ] && [ -f /usr/share/sonic/device/$PLATFORM/port_peripheral_config.j2 ]; then
|
||||||
@ -429,6 +430,7 @@ start() {
|
|||||||
if [[ $? -ne 0 ]] ; then
|
if [[ $? -ne 0 ]] ; then
|
||||||
echo "sonic-cfggen failed to render peripheral_table.json"
|
echo "sonic-cfggen failed to render peripheral_table.json"
|
||||||
echo "$(cat errorlog.txt)"
|
echo "$(cat errorlog.txt)"
|
||||||
|
sonic-cfggen -a '{"DEVICE_METADATA":{"localhost":{"platform":"'$PLATFORM'"}}}' -t /usr/share/sonic/device/$PLATFORM/port_peripheral_config.j2 > /etc/sonic/peripheral_table.json
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ ! -f /etc/sonic/zero_profiles.json ] && [ -f /usr/share/sonic/templates/zero_profiles.j2 ]; then
|
if [ ! -f /etc/sonic/zero_profiles.json ] && [ -f /usr/share/sonic/templates/zero_profiles.j2 ]; then
|
||||||
@ -436,6 +438,7 @@ start() {
|
|||||||
if [[ $? -ne 0 ]] ; then
|
if [[ $? -ne 0 ]] ; then
|
||||||
echo "sonic-cfggen failed to render zero_profiles.json"
|
echo "sonic-cfggen failed to render zero_profiles.json"
|
||||||
echo "$(cat errorlog.txt)"
|
echo "$(cat errorlog.txt)"
|
||||||
|
sonic-cfggen -t /usr/share/sonic/device/$PLATFORM/zero_profiles.j2 > /etc/sonic/zero_profiles.json
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user