> W: 78,0:LLDPBasicTLV.__init__: Unused argument 'args'
> W: 78,0:LLDPBasicTLV.__init__: Unused argument 'kwargs'
> W:109,4:lldp.__init__: __init__ method from base class 'PacketBase' is not 
> called

Cc: "can." <[email protected]>
Signed-off-by: Isaku Yamahata <[email protected]>
---
 ryu/lib/packet/lldp.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ryu/lib/packet/lldp.py b/ryu/lib/packet/lldp.py
index d913c30..f343359 100644
--- a/ryu/lib/packet/lldp.py
+++ b/ryu/lib/packet/lldp.py
@@ -75,7 +75,8 @@ class LLDPBasicTLV(object):
     _LEN_MAX = 511
     tlv_type = None
 
-    def __init__(self, buf=None, *args, **kwargs):
+    def __init__(self, buf=None, *_args, **_kwargs):
+        super(LLDPBasicTLV, self).__init__()
         if buf:
             (self.typelen, ) = struct.unpack(
                 LLDP_TLV_TYPELEN_STR, buf[:LLDP_TLV_SIZE])
@@ -108,6 +109,7 @@ class lldp(packet_base.PacketBase):
     tlvs = []
 
     def __init__(self, tlvs):
+        super(lldp, self).__init__()
         self.tlvs = tlvs
         length = 0
         for tlv in tlvs:
-- 
1.7.10.4


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to