Slightly improve add-optical-connectivity usability
Change-Id: I1d1f01c56ae0e75a525d181b400b9d75ce1e575d
diff --git a/apps/newoptical/src/main/resources/OSGI-INF/blueprint/shell-config.xml b/apps/newoptical/src/main/resources/OSGI-INF/blueprint/shell-config.xml
index 7d7f035..72bdcaa 100644
--- a/apps/newoptical/src/main/resources/OSGI-INF/blueprint/shell-config.xml
+++ b/apps/newoptical/src/main/resources/OSGI-INF/blueprint/shell-config.xml
@@ -18,10 +18,18 @@
<command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.1.0">
<command>
<action class="org.onosproject.newoptical.cli.AddOpticalConnectivityCommand"/>
+ <completers>
+ <ref component-id="connectPointCompleter"/>
+ <ref component-id="connectPointCompleter"/>
+ <null/>
+ </completers>
</command>
<command>
<action class="org.onosproject.newoptical.cli.RemoveOpticalConnectivityCommand"/>
</command>
</command-bundle>
+ <!-- TODO complete only applicable ports -->
+ <bean id="connectPointCompleter" class="org.onosproject.cli.net.ConnectPointCompleter"/>
+
</blueprint>