mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-09-05 09:48:31 +00:00
Accept the probability that the route is already added
This commit is contained in:
@@ -11,7 +11,7 @@ iface = os.environ['INTERFACE']
|
||||
# of the OS routing table
|
||||
subprocess.check_call(['/sbin/ip', 'link', 'set', iface, 'up'])
|
||||
subprocess.check_call(['/sbin/ip', 'addr', 'add', 'dev', iface, '169.254.95.120/24'])
|
||||
subprocess.check_call(['/sbin/ip', 'route', 'add', '169.254.95.0/24', 'dev', iface])
|
||||
subprocess.call(['/sbin/ip', 'route', 'add', '169.254.95.0/24', 'dev', iface])
|
||||
client = httplib.HTTPSConnection('169.254.95.118', context=ssl._create_unverified_context())
|
||||
headers = {
|
||||
'Authorization': 'Basic {0}'.format(base64.b64encode(':'.join((os.environ['user'], os.environ['bmcp'])))),
|
||||
|
Reference in New Issue
Block a user