[ONOS-4015] Implement Region administration CLI
- Implement region add/update/remove CLI
- Implement devices add/remove CLI
Change-Id: I38b40b24df7f864b0725104f63347081257743ac
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 a04af2e..9329c28 100644
--- a/cli/src/main/resources/OSGI-INF/blueprint/shell-config.xml
+++ b/cli/src/main/resources/OSGI-INF/blueprint/shell-config.xml
@@ -555,6 +555,49 @@
<action class="org.onosproject.cli.net.DeviceKeyRemoveCommand"/>
</command>
+ <!--region commands -->
+ <command>
+ <action class="org.onosproject.cli.net.RegionListCommand"/>
+ <completers>
+ <ref component-id="regionIdCompleter"/>
+ </completers>
+ </command>
+ <command>
+ <action class="org.onosproject.cli.net.RegionAddCommand"/>
+ <completers>
+ <null/>
+ <null/>
+ <ref component-id="regionTypeCompleter"/>
+ </completers>
+ </command>
+ <command>
+ <action class="org.onosproject.cli.net.RegionUpdateCommand"/>
+ <completers>
+ <ref component-id="regionIdCompleter"/>
+ <null/>
+ <ref component-id="regionTypeCompleter"/>
+ </completers>
+ </command>
+ <command>
+ <action class="org.onosproject.cli.net.RegionRemoveCommand"/>
+ <completers>
+ <ref component-id="regionIdCompleter"/>
+ </completers>
+ </command>
+ <command>
+ <action class="org.onosproject.cli.net.RegionAddDevicesCommand"/>
+ <completers>
+ <ref component-id="regionIdCompleter"/>
+ <ref component-id="deviceIdCompleter"/>
+ </completers>
+ </command>
+ <command>
+ <action class="org.onosproject.cli.net.RegionRemoveDevicesCommand"/>
+ <completers>
+ <ref component-id="regionIdCompleter"/>
+ <ref component-id="deviceIdCompleter"/>
+ </completers>
+ </command>
</command-bundle>
<bean id="reviewAppNameCompleter" class="org.onosproject.cli.security.ReviewApplicationNameCompleter"/>
@@ -594,4 +637,6 @@
<bean id="subjectKeyCompleter" class="org.onosproject.cli.cfg.SubjectKeyCompleter"/>
<bean id="configKeyCompleter" class="org.onosproject.cli.cfg.ConfigKeyCompleter"/>
+ <bean id="regionIdCompleter" class="org.onosproject.cli.net.RegionIdCompleter"/>
+ <bean id="regionTypeCompleter" class="org.onosproject.cli.net.RegionTypeCompleter"/>
</blueprint>