2 * Copyright (c) 2014 Inocybe Technologies, and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.topologymanager.shell;
10 import org.apache.felix.gogo.commands.Command;
11 import org.apache.felix.gogo.commands.Argument;
12 import org.apache.karaf.shell.console.OsgiCommandSupport;
13 import org.opendaylight.controller.topologymanager.ITopologyManagerShell;
15 @Command(scope = "topologymanager", name = "deleteUserLink", description="deletes user link")
16 public class DeleteUserLink extends OsgiCommandSupport{
17 private ITopologyManagerShell topologyManager;
19 @Argument(index=0, name="name", description="name", required=true, multiValued=false)
23 protected Object doExecute() throws Exception {
24 for(String p : topologyManager.deleteUserLinkShell(name)) {
25 System.out.println(p);
30 public void setTopologyManager(ITopologyManagerShell topologyManager){
31 this.topologyManager = topologyManager;