diff options
author | Satoshi Fujimoto <satoshi.fujimoto7@gmail.com> | 2017-05-09 16:10:00 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-05-12 09:48:19 +0900 |
commit | 7794ff714cd7ac0e606299567a1213b4adc260e1 (patch) | |
tree | 04806646f24c9602b3ef5a711f2f379fa4210aca | |
parent | 0168c289357c503f0b03fae84afa87a0b6c2464c (diff) |
BGPSpeaker/SSH: Support to show L2VPN Flow Spec routes
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/services/protocols/bgp/operator/commands/show/rib.py | 1 | ||||
-rw-r--r-- | ryu/services/protocols/bgp/operator/internal_api.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/ryu/services/protocols/bgp/operator/commands/show/rib.py b/ryu/services/protocols/bgp/operator/commands/show/rib.py index 0e68c83e..f05502a5 100644 --- a/ryu/services/protocols/bgp/operator/commands/show/rib.py +++ b/ryu/services/protocols/bgp/operator/commands/show/rib.py @@ -22,6 +22,7 @@ class RibBase(Command, RouteFormatterMixin): 'ipv6fs', 'vpnv4fs', 'vpnv6fs', + 'l2vpnfs', ] diff --git a/ryu/services/protocols/bgp/operator/internal_api.py b/ryu/services/protocols/bgp/operator/internal_api.py index 21ef33a2..7020bb7d 100644 --- a/ryu/services/protocols/bgp/operator/internal_api.py +++ b/ryu/services/protocols/bgp/operator/internal_api.py @@ -11,6 +11,7 @@ from ryu.lib.packet.bgp import RF_IPv4_FLOWSPEC from ryu.lib.packet.bgp import RF_IPv6_FLOWSPEC from ryu.lib.packet.bgp import RF_VPNv4_FLOWSPEC from ryu.lib.packet.bgp import RF_VPNv6_FLOWSPEC +from ryu.lib.packet.bgp import RF_L2VPN_FLOWSPEC from ryu.lib.packet.bgp import RF_RTC_UC from ryu.lib.packet.bgp import BGP_ATTR_TYPE_ORIGIN from ryu.lib.packet.bgp import BGP_ATTR_TYPE_AS_PATH @@ -92,6 +93,7 @@ class InternalApi(object): 'ipv6fs': RF_IPv6_FLOWSPEC, 'vpnv4fs': RF_VPNv4_FLOWSPEC, 'vpnv6fs': RF_VPNv6_FLOWSPEC, + 'l2vpnfs': RF_L2VPN_FLOWSPEC, 'rtfilter': RF_RTC_UC } if addr_family not in rfs: |