[CORD-2486] Improve Mcast CLI APIs
It adds following commands:
- sr-mcast-tree which shows the mapping group-tree
- sr-mcast-next which shows the mapping device-next
- mcast-routes which is similar to the unicast command (routes)
It improve following commands:
- mcast-join adds completer and improves output
- mcast-delete adds completer and improves output
- mcast-show improves output and adds completer
Change-Id: I4e273ac23b05142026b6b77317b0c9b7af76c3ec
diff --git a/cli/src/main/resources/OSGI-INF/blueprint/shell-config.xml b/cli/src/main/resources/OSGI-INF/blueprint/shell-config.xml
index 2571444..8119bc5 100644
--- a/cli/src/main/resources/OSGI-INF/blueprint/shell-config.xml
+++ b/cli/src/main/resources/OSGI-INF/blueprint/shell-config.xml
@@ -120,12 +120,31 @@
<command>
<action class="org.onosproject.cli.net.McastShowCommand"/>
+ <completers>
+ <ref component-id="mcastGroupCompleter"/>
+ </completers>
+ </command>
+ <command>
+ <action class="org.onosproject.cli.net.McastRoutesListCommand"/>
+ <completers>
+ <ref component-id="mcastGroupCompleter"/>
+ </completers>
</command>
<command>
<action class="org.onosproject.cli.net.McastJoinCommand"/>
+ <completers>
+ <ref component-id="placeholderCompleter"/>
+ <ref component-id="mcastGroupCompleter"/>
+ <ref component-id="connectPointCompleter"/>
+ </completers>
</command>
<command>
<action class="org.onosproject.cli.net.McastDeleteCommand"/>
+ <completers>
+ <ref component-id="placeholderCompleter"/>
+ <ref component-id="mcastGroupCompleter"/>
+ <ref component-id="connectPointCompleter"/>
+ </completers>
</command>
<command>
@@ -992,4 +1011,6 @@
<bean id="domainIdCompleter" class="org.onosproject.cli.net.DomainIdCompleter" />
+ <bean id="mcastGroupCompleter" class="org.onosproject.cli.net.McastGroupCompleter"/>
+
</blueprint>