2017-01-19 22:56:26 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-02-02 22:34:34 -06:00
|
|
|
mkdir -p /etc/ssw
|
|
|
|
|
|
|
|
sonic-cfggen -m /etc/sonic/minigraph.xml -y /etc/sonic/sonic_version.yml -t /etc/swss/snmp/sysDescription.j2 >/etc/ssw/sysDescription
|
2017-01-19 22:56:26 -06:00
|
|
|
|
|
|
|
mkdir -p /etc/snmp
|
|
|
|
|
|
|
|
sonic-cfggen -m /etc/sonic/minigraph.xml -y /etc/sonic/snmp.yml -t /etc/swss/snmp/snmpd.conf.j2 >/etc/snmp/snmpd.conf
|
|
|
|
|
|
|
|
hwsku=`sonic-cfggen -m /etc/sonic/minigraph.xml -v minigraph_hwsku`
|
2017-02-02 22:34:34 -06:00
|
|
|
/bin/cp -rf /usr/share/sonic/$hwsku/alias_map.json /etc/snmp/
|
2017-01-19 22:56:26 -06:00
|
|
|
|
2017-01-24 21:16:55 -06:00
|
|
|
mkdir -p /var/sonic
|
|
|
|
echo "# Config files managed by sonic-config-engine" >/var/sonic/config_status
|
2017-01-19 22:56:26 -06:00
|
|
|
|