2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 10:06:39 +00:00

Install the cumulus license from cumulusztp (#3731)

This commit is contained in:
Matt Ezell 2017-08-21 23:06:23 -04:00 committed by yangsong
parent a263773b15
commit adc81c0cbb

View File

@ -114,6 +114,20 @@ else
logger -s -t "xcat.cumulusztp" -p local4.info "SNMP enabled!"
fi
#install license, if needed
cl-license > /dev/null 2>&1
rc=$?
if [ "$rc" != "0" ];then
if cl-license -i http://$server_ip/install/custom/sw_os/cumulus/licensefile.txt; then
logger -s -t "xcat.cumulusztp" -p local4.info "installed Cumulus license"
systemctl enable switchd
systemctl start switchd
else
logger -s -t "xcat.cumulusztp" -p local4.err "failed to install Cumulus license"
echo "failed to install Cumulus license"
fi
fi
#config base interface
./configinterface
rc=$?