mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-09 14:26:10 +02:00
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:
parent
06c84f4b05
commit
77a6afa309
@ -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):
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user