summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2014-03-30 08:46:52 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-04-01 17:29:16 +0900
commit77a6afa309339799d192b03c04406152b03df8b6 (patch)
tree5aa999996a889ec7d9051677b20ba392d6eab344
parent06c84f4b05f1e77e5d3bf0446af043532edae430 (diff)
bgp: enable to show ipv4 rib
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/services/protocols/bgp/operator/commands/show/rib.py2
-rw-r--r--ryu/services/protocols/bgp/operator/internal_api.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/ryu/services/protocols/bgp/operator/commands/show/rib.py b/ryu/services/protocols/bgp/operator/commands/show/rib.py
index 99979fd9..24740247 100644
--- a/ryu/services/protocols/bgp/operator/commands/show/rib.py
+++ b/ryu/services/protocols/bgp/operator/commands/show/rib.py
@@ -10,7 +10,7 @@ from ryu.services.protocols.bgp.operator.commands.responses import \
class RibBase(Command, RouteFormatterMixin):
- supported_families = ['vpnv4', 'rtfilter', 'vpnv6']
+ supported_families = ['ipv4', 'vpnv4', 'rtfilter', 'vpnv6']
class Rib(RibBase):
diff --git a/ryu/services/protocols/bgp/operator/internal_api.py b/ryu/services/protocols/bgp/operator/internal_api.py
index fa307b8f..ab7255a1 100644
--- a/ryu/services/protocols/bgp/operator/internal_api.py
+++ b/ryu/services/protocols/bgp/operator/internal_api.py
@@ -67,6 +67,7 @@ class InternalApi(object):
def get_single_rib_routes(self, addr_family):
rfs = {
+ 'ipv4': nlri.get_rf(1, 1),
'vpnv4': nlri.get_rf(1, 128),
'vpnv6': nlri.get_rf(2, 128),
'rtfilter': nlri.get_rf(1, 132)