updated interface.py to use python3 super()

This commit is contained in:
bharnden 2019-10-23 10:40:40 -07:00
parent b185c3c679
commit 440c8ed565
4 changed files with 7 additions and 7 deletions

View file

@ -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