summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/lib/mrtlib.py30
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