ea372cc7c1
- Add a functionality to get SNMP community from DHCP (option 224) - Add a functionality to get minigraph from http service instead of using default minigraph - The url for graph service is passed through DHCP option 225 - This feature is by default disabled. Modify rule/config to enable it on build time, or modify /etc/sonic/graph_service_url on run time. - Fix a bug that getting hostname from DHCP is not working correctly
10 lines
235 B
Plaintext
10 lines
235 B
Plaintext
case $reason in
|
|
BOUND|RENEW|REBIND|REBOOT)
|
|
if [ -n "$new_minigraph_url" ]; then
|
|
echo $new_minigraph_url > /tmp/dhcp_graph_url
|
|
else
|
|
echo "N/A" > /tmp/dhcp_graph_url
|
|
fi
|
|
;;
|
|
esac
|