Improvements for XOS integration app
- Add a default value for the tenant provider service
id and don't require callers to set it when creating
a tenant.
- Add javadocs to the volt tenant object.
Change-Id: I1144820eb3e311cffc87ecefaccf689127730dcf
diff --git a/apps/xos-integration/src/main/java/org/onosproject/xosintegration/cli/VoltTenantsCreateCommand.java b/apps/xos-integration/src/main/java/org/onosproject/xosintegration/cli/VoltTenantsCreateCommand.java
index 76605df..611446d 100644
--- a/apps/xos-integration/src/main/java/org/onosproject/xosintegration/cli/VoltTenantsCreateCommand.java
+++ b/apps/xos-integration/src/main/java/org/onosproject/xosintegration/cli/VoltTenantsCreateCommand.java
@@ -27,17 +27,13 @@
@Command(scope = "onos", name = "add-tenant",
description = "Lists the inventory of VOLT tenants and their contents")
public class VoltTenantsCreateCommand extends AbstractShellCommand {
- @Argument(index = 0, name = "provider service",
- description = "Tenant ID",
- required = true, multiValued = false)
- long providerService;
- @Argument(index = 1, name = "service specific ID",
+ @Argument(index = 0, name = "service specific ID",
description = "service specific ID",
required = true, multiValued = false)
String serviceSpecificId;
- @Argument(index = 2, name = "vlan ID",
+ @Argument(index = 1, name = "vlan ID",
description = "vlan ID",
required = true, multiValued = false)
String vlanId;
@@ -47,7 +43,6 @@
VoltTenantService service = get(VoltTenantService.class);
VoltTenant newTenant = VoltTenant.builder()
- .withProviderService(providerService)
.withServiceSpecificId(serviceSpecificId)
.withVlanId(vlanId)
.build();