fix for gretap interfaces giving bad values to netclient
This commit is contained in:
parent
fee56302a1
commit
eb248291a5
1 changed files with 7 additions and 3 deletions
|
@ -460,9 +460,13 @@ class GreTap(CoreInterface):
|
||||||
if remoteip is None:
|
if remoteip is None:
|
||||||
raise ValueError("missing remote IP required for GRE TAP device")
|
raise ValueError("missing remote IP required for GRE TAP device")
|
||||||
|
|
||||||
self.net_client.create_gretap(
|
if localip is not None:
|
||||||
self.localname, str(remoteip), str(localip), str(ttl), str(key)
|
localip = str(localip)
|
||||||
)
|
if ttl is not None:
|
||||||
|
ttl = str(ttl)
|
||||||
|
if key is not None:
|
||||||
|
key = str(key)
|
||||||
|
self.net_client.create_gretap(self.localname, str(remoteip), localip, ttl, key)
|
||||||
self.net_client.device_up(self.localname)
|
self.net_client.device_up(self.localname)
|
||||||
self.up = True
|
self.up = True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue