mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Who changed my condition!
De Morgans laws chaps The negation of a conjunction is the disjunction of the negations. The negation of a disjunction is the conjunction of the negations.
This commit is contained in:
parent
db48a99678
commit
87d4171c53
@ -298,9 +298,12 @@ class CsIP:
|
|||||||
for i in CsHelper.execute(cmd):
|
for i in CsHelper.execute(cmd):
|
||||||
if " DOWN " in i:
|
if " DOWN " in i:
|
||||||
cmd2 = "ip link set %s up" % self.getDevice()
|
cmd2 = "ip link set %s up" % self.getDevice()
|
||||||
# Do not change the state of ips on a redundant router that are managed by vrrp or CsRedundant
|
# If redundant do not bring up public interfaces
|
||||||
# the guest networks interfaces should be up and running.
|
# master.py and keepalived deal with tham
|
||||||
if not self.config.cmdline().is_redundant() and not self.is_public():
|
if self.config.cmdline().is_redundant() and not self.is_public():
|
||||||
|
CsHelper.execute(cmd2)
|
||||||
|
# if not redundant bring everything up
|
||||||
|
if not self.config.cmdline().is_redundant():
|
||||||
CsHelper.execute(cmd2)
|
CsHelper.execute(cmd2)
|
||||||
|
|
||||||
def set_mark(self):
|
def set_mark(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user