Merge branch 'rel/5.2' of git-ssh.web.boeing.com:Boeing-CORE/CORE into rel/5.2
This commit is contained in:
commit
6d11f5d63d
1 changed files with 4 additions and 4 deletions
|
@ -274,7 +274,7 @@ class GreTap(PyCoreNetIf):
|
|||
|
||||
if remoteip is None:
|
||||
raise ValueError, "missing remote IP required for GRE TAP device"
|
||||
args = ["ip", "link", "add", self.localname, "type", "gretap",
|
||||
args = [constants.IP_BIN, "link", "add", self.localname, "type", "gretap",
|
||||
"remote", str(remoteip)]
|
||||
if localip:
|
||||
args += ["local", str(localip)]
|
||||
|
@ -283,7 +283,7 @@ class GreTap(PyCoreNetIf):
|
|||
if key:
|
||||
args += ["key", str(key)]
|
||||
utils.check_cmd(args)
|
||||
args = ["ip", "link", "set", self.localname, "up"]
|
||||
args = [constants.IP_BIN, "link", "set", self.localname, "up"]
|
||||
utils.check_cmd(args)
|
||||
self.up = True
|
||||
|
||||
|
@ -295,9 +295,9 @@ class GreTap(PyCoreNetIf):
|
|||
"""
|
||||
if self.localname:
|
||||
try:
|
||||
args = ["ip", "link", "set", self.localname, "down"]
|
||||
args = [constants.IP_BIN, "link", "set", self.localname, "down"]
|
||||
utils.check_cmd(args)
|
||||
args = ["ip", "link", "del", self.localname]
|
||||
args = [constants.IP_BIN, "link", "del", self.localname]
|
||||
utils.check_cmd(args)
|
||||
except CoreCommandError:
|
||||
logger.exception("error during shutdown")
|
||||
|
|
Loading…
Reference in a new issue