updated interface.py to use python3 super()
This commit is contained in:
parent
b185c3c679
commit
440c8ed565
4 changed files with 7 additions and 7 deletions
|
@ -232,7 +232,7 @@ class Veth(CoreInterface):
|
|||
:raises CoreCommandError: when there is a command exception
|
||||
"""
|
||||
# note that net arg is ignored
|
||||
CoreInterface.__init__(self, session, node, name, mtu, server)
|
||||
super().__init__(session, node, name, mtu, server)
|
||||
self.localname = localname
|
||||
self.up = False
|
||||
if start:
|
||||
|
@ -293,7 +293,7 @@ class TunTap(CoreInterface):
|
|||
will run on, default is None for localhost
|
||||
:param bool start: start flag
|
||||
"""
|
||||
CoreInterface.__init__(self, session, node, name, mtu, server)
|
||||
super().__init__(session, node, name, mtu, server)
|
||||
self.localname = localname
|
||||
self.up = False
|
||||
self.transport_type = "virtual"
|
||||
|
@ -476,7 +476,7 @@ class GreTap(CoreInterface):
|
|||
will run on, default is None for localhost
|
||||
:raises CoreCommandError: when there is a command exception
|
||||
"""
|
||||
CoreInterface.__init__(self, session, node, name, mtu, server)
|
||||
super().__init__(session, node, name, mtu, server)
|
||||
if _id is None:
|
||||
# from PyCoreObj
|
||||
_id = ((id(self) >> 16) ^ (id(self) & 0xFFFF)) & 0xFFFF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue