Merge dev/fluorine work across to master
[unimgr.git] / cli / src / main / java / org / opendaylight / unimgr / cli / EvcRemoveShellCommand.java
diff --git a/cli/src/main/java/org/opendaylight/unimgr/cli/EvcRemoveShellCommand.java b/cli/src/main/java/org/opendaylight/unimgr/cli/EvcRemoveShellCommand.java
deleted file mode 100644 (file)
index 122bb3f..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright (c) 2015 CableLabs and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.unimgr.cli;
-
-import org.apache.karaf.shell.commands.Argument;
-import org.apache.karaf.shell.commands.Command;
-import org.apache.karaf.shell.console.OsgiCommandSupport;
-import org.opendaylight.unimgr.api.IUnimgrConsoleProvider;
-
-@Command(name = "remove", scope = "Evc", description = "Removes Evc.")
-public class EvcRemoveShellCommand extends OsgiCommandSupport {
-
-    protected IUnimgrConsoleProvider provider;
-
-    @Argument(index = 0, name = "id", description = "Evc Id", required = true, multiValued = false)
-    String id;
-
-    public EvcRemoveShellCommand(IUnimgrConsoleProvider provider) {
-        this.provider = provider;
-    }
-
-    @Override
-    protected Object doExecute() throws Exception {
-        if (provider.removeEvc(id)) {
-            return String.format("Evc successfully removed");
-        } else {
-            return String.format("Error removing Evc");
-        }
-    }
-
-}