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>
This commit is contained in:
ISHIDA Wataru 2014-03-30 08:46:52 +00:00 committed by FUJITA Tomonori
parent 06c84f4b05
commit 77a6afa309
2 changed files with 2 additions and 1 deletions

View File

@ -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):

View File

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