Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
 ryu/lib/packet/lldp.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ryu/lib/packet/lldp.py b/ryu/lib/packet/lldp.py
index b668f66..cd13626 100644
--- a/ryu/lib/packet/lldp.py
+++ b/ryu/lib/packet/lldp.py
@@ -167,6 +167,9 @@ class lldp(packet_base.PacketBase):
             return tlv_cls
         return _set_type
 
+    def __len__(self):
+        return sum(LLDP_TLV_SIZE + tlv.len for tlv in self.tlvs)
+
 
 @lldp.set_tlv_type(LLDP_TLV_END)
 class End(LLDPBasicTLV):
-- 
1.8.1.5


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to