summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2014-08-18 09:19:09 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-08-18 14:14:55 +0900
commit9606784f68cf6092c23f3833a108325b2e3b085b (patch)
tree97c52066308b23ad88da17efceb7fb3f4f51cd0c
parentf01af327c8f1316dbb5f7d647c0f58a029476f28 (diff)
bgp: encode 'next_hop' in human readable format
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/lib/packet/bgp.py5
1 files changed, 5 insertions, 0 deletions
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',