diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2018-03-30 11:33:55 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-08-11 20:04:30 +0900 |
commit | ccedf4cfb305708dd95c9b256af9ec61069eb693 (patch) | |
tree | 9e265635a442932bb8d1660eafffd58123f207b1 | |
parent | a2bcf0a7e61d45deda7e8ec165aa61e648db3ace (diff) |
mrtlib: Missing subclass for SUBTYPE_RIB_*_MULTICAST
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/lib/mrtlib.py | 30 |
1 files 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 |