From 9606784f68cf6092c23f3833a108325b2e3b085b Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Mon, 18 Aug 2014 09:19:09 +0900 Subject: [PATCH] bgp: encode 'next_hop' in human readable format Signed-off-by: ISHIDA Wataru Signed-off-by: FUJITA Tomonori --- ryu/lib/packet/bgp.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index fb82412f..ff6fdd0c 100644 --- a/ryu/lib/packet/bgp.py +++ b/ryu/lib/packet/bgp.py @@ -1960,6 +1960,11 @@ class BGPPathAttributeMpReachNLRI(_PathAttribute): _ATTR_FLAGS = BGP_ATTR_FLAG_OPTIONAL _class_suffixes = ['AddrPrefix'] _rd_length = 8 + _TYPE = { + 'ascii': [ + 'next_hop' + ] + } def __init__(self, afi, safi, next_hop, nlri, next_hop_len=0, reserved='\0',