On Tue, 31 Jan 2017 16:59:10 +0900 IWASE Yusuke <[email protected]> wrote:
> Currently, "prefix" argument should be an instance of IPv4Prefix or > IPv6Prefix in some Zebra message body classes. > But for the convenience, this patch enables to specify "prefix" in > the str type representation. > > Signed-off-by: IWASE Yusuke <[email protected]> > --- > ryu/lib/packet/zebra.py | 109 > +++++++++++++++++++++++++++++------------------- > 1 file changed, 65 insertions(+), 44 deletions(-) Hmm, I got the followings: Traceback (most recent call last): File "/home/travis/build/fujita/ryu/ryu/tests/unit/packet/test_zebra.py", line 64, in test_pcap pkt.serialize() File "/home/travis/build/fujita/ryu/ryu/lib/packet/packet.py", line 99, in serialize data = p.serialize(self.data, prev) File "/home/travis/build/fujita/ryu/ryu/lib/packet/zebra.py", line 817, in serialize body = self.body.serialize() File "/home/travis/build/fujita/ryu/ryu/lib/packet/zebra.py", line 1601, in serialize if ip.valid_ipv4(self.prefix): AttributeError: module 'ryu.lib.ip' has no attribute 'valid_ipv4' ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
