shell-config.xml 1.09 KB
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">

    <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.1.0">
        <command>
            <action class="org.onlab.onos.cli.net.DevicesListCommand"/>
        </command>
        <command>
            <action class="org.onlab.onos.cli.net.DevicePortsListCommand"/>
            <completers>
                <ref component-id="deviceIdCompleter"/>
            </completers>
        </command>
        <command>
            <action class="org.onlab.onos.cli.net.LinksListCommand"/>
            <completers>
                <ref component-id="deviceIdCompleter"/>
            </completers>
        </command>

        <!--<command>-->
            <!--<action class="org.onlab.onos.cli.GreetCommand"/>-->
            <!--<completers>-->
                <!--<ref component-id="nameCompleter"/>-->
            <!--</completers>-->
        <!--</command>-->
    </command-bundle>

    <bean id="deviceIdCompleter" class="org.onlab.onos.cli.net.DeviceIdCompleter"/>

    <bean id="nameCompleter" class="org.onlab.onos.cli.NameCompleter"/>

</blueprint>