shell-config.xml 3.3 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.NodesListCommand"/>
        </command>
        <command>
            <action class="org.onlab.onos.cli.MastersListCommand"/>
            <completers>
                <ref component-id="clusterIdCompleter"/>
            </completers>
        </command>

        <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.DeviceRemoveCommand"/>
            <completers>
                <ref component-id="deviceIdCompleter"/>
            </completers>
        </command>
        <command>
            <action class="org.onlab.onos.cli.net.DeviceRoleCommand"/>
            <completers>
                <ref component-id="deviceIdCompleter"/>
                <ref component-id="roleCompleter"/>
            </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.net.TopologyCommand"/>
        </command>
        <command>
            <action class="org.onlab.onos.cli.net.PathListCommand"/>
            <completers>
                <ref component-id="deviceIdCompleter"/>
            </completers>
        </command>
        <command>
            <action class="org.onlab.onos.cli.net.ClustersListCommand"/>
        </command>
        <command>
            <action class="org.onlab.onos.cli.net.ClusterDevicesCommand"/>
            <completers>
                <ref component-id="clusterIdCompleter"/>
            </completers>
        </command>
        <command>
            <action class="org.onlab.onos.cli.net.ClusterLinksCommand"/>
            <completers>
                <ref component-id="clusterIdCompleter"/>
            </completers>
        </command>

        <command>
            <action class="org.onlab.onos.cli.net.HostsListCommand"/>
        </command>

        <command>
            <action class="org.onlab.onos.cli.net.FlowsListCommand"/>
            <completers>
                <ref component-id="flowRuleStatusCompleter"/>
                <ref component-id="deviceIdCompleter"/>
            </completers>
        </command>

        <command>
            <action class="org.onlab.onos.cli.net.WipeOutCommand"/>
        </command>
    </command-bundle>

    <bean id="nodeIdCompleter" class="org.onlab.onos.cli.NodeIdCompleter"/>
    <bean id="deviceIdCompleter" class="org.onlab.onos.cli.net.DeviceIdCompleter"/>
    <bean id="clusterIdCompleter" class="org.onlab.onos.cli.net.ClusterIdCompleter"/>
    <bean id="roleCompleter" class="org.onlab.onos.cli.net.RoleCompleter"/>
    <bean id="hostIdCompleter" class="org.onlab.onos.cli.net.HostIdCompleter"/>
    <bean id="flowRuleStatusCompleter" class="org.onlab.onos.cli.net.FlowRuleStatusCompleter"/>

</blueprint>