mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 03:28:31 +00:00
lib: check for eigrpd available and return warning if missing instead of failing
This commit is contained in:
parent
e5355a016f
commit
44a592b2a6
@ -582,6 +582,13 @@ class Router(Node):
|
|||||||
self.cmd('/sbin/modprobe mpls-router')
|
self.cmd('/sbin/modprobe mpls-router')
|
||||||
self.cmd('/sbin/modprobe mpls-iptunnel')
|
self.cmd('/sbin/modprobe mpls-iptunnel')
|
||||||
self.cmd('echo 100000 > /proc/sys/net/mpls/platform_labels')
|
self.cmd('echo 100000 > /proc/sys/net/mpls/platform_labels')
|
||||||
|
|
||||||
|
if self.daemons['eigrpd'] == 1:
|
||||||
|
eigrpd_path = os.path.join(self.daemondir, 'eigrpd')
|
||||||
|
if not os.path.isfile(eigrpd_path):
|
||||||
|
logger.warning("EIGRP Test, but no eigrpd compiled or installed")
|
||||||
|
return "EIGRP Test, but no eigrpd compiled or installed"
|
||||||
|
|
||||||
# Init done - now restarting daemons
|
# Init done - now restarting daemons
|
||||||
self.restartRouter()
|
self.restartRouter()
|
||||||
return ""
|
return ""
|
||||||
|
Loading…
Reference in New Issue
Block a user