[dockers] Remove dependency to minigraph (#1179)
* Remove dependency to minigraph * Remove -m in swssconfig.sh
This commit is contained in:
parent
ded9fbb764
commit
dd7e9240c8
@ -1,15 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
mkdir -p /etc/quagga
|
mkdir -p /etc/quagga
|
||||||
sonic-cfggen -m -d -y /etc/sonic/deployment_id_asn_map.yml -t /usr/share/sonic/templates/bgpd.conf.j2 > /etc/quagga/bgpd.conf
|
sonic-cfggen -d -y /etc/sonic/deployment_id_asn_map.yml -t /usr/share/sonic/templates/bgpd.conf.j2 > /etc/quagga/bgpd.conf
|
||||||
|
|
||||||
sonic-cfggen -m -d -t /usr/share/sonic/templates/zebra.conf.j2 > /etc/quagga/zebra.conf
|
sonic-cfggen -d -t /usr/share/sonic/templates/zebra.conf.j2 > /etc/quagga/zebra.conf
|
||||||
|
|
||||||
sonic-cfggen -m -d -t /usr/share/sonic/templates/isolate.j2 > /usr/sbin/bgp-isolate
|
sonic-cfggen -d -t /usr/share/sonic/templates/isolate.j2 > /usr/sbin/bgp-isolate
|
||||||
chown root:root /usr/sbin/bgp-isolate
|
chown root:root /usr/sbin/bgp-isolate
|
||||||
chmod 0755 /usr/sbin/bgp-isolate
|
chmod 0755 /usr/sbin/bgp-isolate
|
||||||
|
|
||||||
sonic-cfggen -m -d -t /usr/share/sonic/templates/unisolate.j2 > /usr/sbin/bgp-unisolate
|
sonic-cfggen -d -t /usr/share/sonic/templates/unisolate.j2 > /usr/sbin/bgp-unisolate
|
||||||
chown root:root /usr/sbin/bgp-unisolate
|
chown root:root /usr/sbin/bgp-unisolate
|
||||||
chmod 0755 /usr/sbin/bgp-unisolate
|
chmod 0755 /usr/sbin/bgp-unisolate
|
||||||
|
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
mkdir -p /etc/swss/config.d/
|
mkdir -p /etc/swss/config.d/
|
||||||
|
|
||||||
sonic-cfggen -m /etc/sonic/minigraph.xml -d -t /usr/share/sonic/templates/switch.json.j2 > /etc/swss/config.d/switch.json
|
sonic-cfggen -d -t /usr/share/sonic/templates/switch.json.j2 > /etc/swss/config.d/switch.json
|
||||||
sonic-cfggen -m /etc/sonic/minigraph.xml -d -t /usr/share/sonic/templates/ipinip.json.j2 > /etc/swss/config.d/ipinip.json
|
sonic-cfggen -d -t /usr/share/sonic/templates/ipinip.json.j2 > /etc/swss/config.d/ipinip.json
|
||||||
sonic-cfggen -m /etc/sonic/minigraph.xml -d -t /usr/share/sonic/templates/ports.json.j2 > /etc/swss/config.d/ports.json
|
sonic-cfggen -d -t /usr/share/sonic/templates/ports.json.j2 > /etc/swss/config.d/ports.json
|
||||||
|
|
||||||
export platform=`sonic-cfggen -v platform`
|
export platform=`sonic-cfggen -v platform`
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ function fast_reboot {
|
|||||||
# Restore FDB and ARP table ASAP
|
# Restore FDB and ARP table ASAP
|
||||||
fast_reboot
|
fast_reboot
|
||||||
|
|
||||||
HWSKU=`sonic-cfggen -m /etc/sonic/minigraph.xml -d -v "DEVICE_METADATA['localhost']['hwsku']"`
|
HWSKU=`sonic-cfggen -d -v "DEVICE_METADATA['localhost']['hwsku']"`
|
||||||
|
|
||||||
SWSSCONFIG_ARGS="00-copp.config.json ipinip.json ports.json switch.json "
|
SWSSCONFIG_ARGS="00-copp.config.json ipinip.json ports.json switch.json "
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ elif [ "$HWSKU" == "Force10-S6100" ]; then
|
|||||||
elif [ "$HWSKU" == "Arista-7050-QX32" ]; then
|
elif [ "$HWSKU" == "Arista-7050-QX32" ]; then
|
||||||
SWSSCONFIG_ARGS+="td2.32ports.buffers.json td2.32ports.qos.json "
|
SWSSCONFIG_ARGS+="td2.32ports.buffers.json td2.32ports.qos.json "
|
||||||
elif [[ "$HWSKU" == "ACS-MSN27"* ]]; then
|
elif [[ "$HWSKU" == "ACS-MSN27"* ]]; then
|
||||||
sonic-cfggen -m /etc/sonic/minigraph.xml -t /usr/share/sonic/templates/msn27xx.32ports.buffers.json.j2 > /etc/swss/config.d/msn27xx.32ports.buffers.json
|
sonic-cfggen -d -t /usr/share/sonic/templates/msn27xx.32ports.buffers.json.j2 > /etc/swss/config.d/msn27xx.32ports.buffers.json
|
||||||
SWSSCONFIG_ARGS+="msn27xx.32ports.buffers.json "
|
SWSSCONFIG_ARGS+="msn27xx.32ports.buffers.json "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user