Merge "BUG-2329 Add test for anyxmls inside rpc resonse for netcfon-connector"
[controller.git] / opendaylight / hosttracker / shell / src / main / java / org / opendaylight / controller / hosttracker / shell / DumpPendingARPReqList.java
1 package org.opendaylight.controller.hosttracker.shell;
2 /**
3 * Copyright (c) 2014 Inocybe Technologies, and others. All rights reserved.
4 *
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 */
9
10 import org.apache.felix.gogo.commands.Command;
11 import org.apache.karaf.shell.console.OsgiCommandSupport;
12 import org.opendaylight.controller.hosttracker.IHostTrackerShell;
13
14 @Command(scope = "hosttracker", name = "dumpPendingARPReqList", description="Display the dump pending ARPReqList")
15 public class DumpPendingARPReqList extends OsgiCommandSupport{
16
17     private IHostTrackerShell hostTracker;
18
19     @Override
20     protected Object doExecute() throws Exception {
21         System.out.print(hostTracker.dumpPendingArpReqList());
22         return null;
23     }
24
25     public void setHostTracker(IHostTrackerShell hostTracker){
26         this.hostTracker = hostTracker;
27     }
28 }