Module: check_mk
Branch: master
Commit: 37b6a7252a275d4335d1b3cd5ec4e0cb3c9aa338
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=37b6a7252a275d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 14 17:54:33 2018 +0100
mkbackup: Use dynamic (platform dependent) interface name instead of hard coded eth0
Change-Id: I39b7f350cb542b1c38966c9a9bec25cf3c4a9417
---
bin/mkbackup | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/bin/mkbackup b/bin/mkbackup
index b761368..1b5960d 100755
--- a/bin/mkbackup
+++ b/bin/mkbackup
@@ -1649,7 +1649,8 @@ def setup_cluster_environment(info):
# To be able to start the DRBD volume we need to have the IP
# addresses configured in the DRBD config active. Simply activate
- # all IP addresses of the host on eth0. Will be cleaned up by reboot.
+ # all IP addresses of the host on the primary network interface.
+ # This will be cleaned up by reboot.
enable_drbd_ip_addresses()
cma.initialize_drbd()
@@ -1681,7 +1682,7 @@ def enable_drbd_ip_addresses():
log("Enabling DRBD network address (%s: %s/%s)" % (drbd_if, address,
netmask))
subprocess.call(["ip", "a", "a", "%s/%s" %
(address, netmask),
- "dev", "eth0"])
+ "dev", cma_net.get_simple_interface_name()])
def verify_cma_version_compatible(info):