On Thu,  1 Aug 2013 13:54:56 +0900
YAMAMOTO Takashi <[email protected]> wrote:

> main changes from the previous:
>     - adapt bpdu
> 
> YAMAMOTO Takashi (6):
>   packet lib: change the api to use text addresses
>   topology.switches: update after packet lib api changes
>   rest_router: update after packet lib api changes
>   packet lib api: update documentation
>   packet lib: pydoc update/improvements after api change
>   note about network address representation
> 
>  doc/source/library_packet.rst          | 13 +++++++--
>  ryu/app/rest_router.py                 | 37 ++++++++++++------------
>  ryu/lib/mac.py                         |  6 ++--
>  ryu/lib/packet/arp.py                  | 42 +++++++++++++++------------
>  ryu/lib/packet/bpdu.py                 | 16 +++++-----
>  ryu/lib/packet/ethernet.py             | 24 +++++++++------
>  ryu/lib/packet/icmpv6.py               | 12 ++++----
>  ryu/lib/packet/ipv4.py                 | 41 +++++++++++++++-----------
>  ryu/lib/packet/ipv6.py                 | 25 +++++++++-------
>  ryu/lib/packet/lldp.py                 |  6 ++--
>  ryu/lib/packet/packet_utils.py         |  9 ++++--
>  ryu/lib/packet/slow.py                 | 23 +++++++++------
>  ryu/lib/packet/vrrp.py                 | 53 
> ++++++++++++++++++----------------
>  ryu/tests/unit/packet/test_arp.py      | 26 +++++++++--------
>  ryu/tests/unit/packet/test_ethernet.py | 14 +++++----
>  ryu/tests/unit/packet/test_icmpv6.py   | 36 ++++++++++++-----------
>  ryu/tests/unit/packet/test_ipv4.py     | 15 +++++-----
>  ryu/tests/unit/packet/test_lldp.py     | 11 ++++---
>  ryu/tests/unit/packet/test_packet.py   | 43 ++++++++++++++-------------
>  ryu/tests/unit/packet/test_slow.py     | 18 ++++++------
>  ryu/tests/unit/packet/test_tcp.py      | 16 +++++-----
>  ryu/tests/unit/packet/test_udp.py      | 12 ++++----
>  ryu/tests/unit/packet/test_vlan.py     | 10 +++----
>  ryu/tests/unit/packet/test_vrrp.py     | 51 ++++++++++++++++++--------------
>  ryu/topology/switches.py               |  4 +--
>  25 files changed, 315 insertions(+), 248 deletions(-)

Applied, thanks. I should have checked before merging but seems this
breaks the unittest.

We need a clever function to compare IPV6 addresses?

diff --git a/ryu/tests/unit/packet/test_icmpv6.py 
b/ryu/tests/unit/packet/test_icmpv6.py
index 26b8c89..cf3333e 100644
--- a/ryu/tests/unit/packet/test_icmpv6.py
+++ b/ryu/tests/unit/packet/test_icmpv6.py
@@ -170,7 +170,7 @@ class Test_icmpv6_neighbor_solict(unittest.TestCase):
     code = 0
     csum = 0x952d
     res = 0
-    dst = '3ffe:507:0:1:200:86ff:fe05:80da'
+    dst = '3ffe:507::1:200:86ff:fe05:80da'
     nd_type = 1
     nd_length = 1
     nd_hw_src = '00:60:97:07:69:ea'
@@ -178,7 +178,7 @@ class Test_icmpv6_neighbor_solict(unittest.TestCase):
     buf = '\x87\x00\x95\x2d\x00\x00\x00\x00' \
         + '\x3f\xfe\x05\x07\x00\x00\x00\x01' \
         + '\x02\x00\x86\xff\xfe\x05\x80\xda'
-    src_ipv6 = '3ffe:507:0:1:200:86ff:fe05:80da'
+    src_ipv6 = '3ffe:507::1:200:86ff:fe05:80da'
     dst_ipv6 = '3ffe:501:0:1001::2'
 
     def setUp(self):
@@ -268,7 +268,7 @@ class 
Test_icmpv6_neighbor_advert(Test_icmpv6_neighbor_solict):
         self.type_ = 136
         self.csum = 0xb8ba
         self.res = 7
-        self.dst = '3ffe:507:0:1:260:97ff:fe07:69ea'
+        self.dst = '3ffe:507::1:260:97ff:fe07:69ea'
         self.nd_type = 2
         self.nd_length = 1
         self.nd_data = None

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