From ccedf4cfb305708dd95c9b256af9ec61069eb693 Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Fri, 30 Mar 2018 11:33:55 +0900 Subject: mrtlib: Missing subclass for SUBTYPE_RIB_*_MULTICAST Signed-off-by: IWASE Yusuke Signed-off-by: FUJITA Tomonori --- ryu/lib/mrtlib.py | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/ryu/lib/mrtlib.py b/ryu/lib/mrtlib.py index 83b4e536..c8f86fc9 100644 --- a/ryu/lib/mrtlib.py +++ b/ryu/lib/mrtlib.py @@ -667,22 +667,44 @@ class TableDump2AfiSafiSpecificRibMrtMessage(TableDump2MrtMessage): @TableDump2MrtMessage.register_type( TableDump2MrtRecord.SUBTYPE_RIB_IPV4_UNICAST) +class TableDump2RibIPv4UnicastMrtMessage( + TableDump2AfiSafiSpecificRibMrtMessage): + """ + MRT Message for the TABLE_DUMP_V2 Type and the + SUBTYPE_RIB_IPV4_UNICAST subtype. + """ + _PREFIX_CLS = bgp.IPAddrPrefix + + @TableDump2MrtMessage.register_type( TableDump2MrtRecord.SUBTYPE_RIB_IPV4_MULTICAST) -class TableDump2RibIPv4UnicastMrtMessage(TableDump2AfiSafiSpecificRibMrtMessage): +class TableDump2RibIPv4MulticastMrtMessage( + TableDump2AfiSafiSpecificRibMrtMessage): """ MRT Message for the TABLE_DUMP_V2 Type and the - RIB_IPV4_UNICAST/SUBTYPE_RIB_IPV4_MULTICAST subtype. + SUBTYPE_RIB_IPV4_MULTICAST subtype. """ _PREFIX_CLS = bgp.IPAddrPrefix @TableDump2MrtMessage.register_type( TableDump2MrtRecord.SUBTYPE_RIB_IPV6_UNICAST) -class TableDump2RibIPv6UnicastMrtMessage(TableDump2AfiSafiSpecificRibMrtMessage): +class TableDump2RibIPv6UnicastMrtMessage( + TableDump2AfiSafiSpecificRibMrtMessage): + """ + MRT Message for the TABLE_DUMP_V2 Type and the + SUBTYPE_RIB_IPV6_MULTICAST subtype. + """ + _PREFIX_CLS = bgp.IP6AddrPrefix + + +@TableDump2MrtMessage.register_type( + TableDump2MrtRecord.SUBTYPE_RIB_IPV6_MULTICAST) +class TableDump2RibIPv6MulticastMrtMessage( + TableDump2AfiSafiSpecificRibMrtMessage): """ MRT Message for the TABLE_DUMP_V2 Type and the - RIB_IPV6_UNICAST/SUBTYPE_RIB_IPV6_MULTICAST subtype. + SUBTYPE_RIB_IPV6_MULTICAST subtype. """ _PREFIX_CLS = bgp.IP6AddrPrefix -- cgit v1.2.3