Merge "Upgrade ietf-{inet,yang}-types to 2013-07-15"
[vpnservice.git] / bgpmanager / bgpmanager-impl / src / main / java / org / opendaylight / bgpmanager / DisplayBgpConfigCli.java
1 /*
2  * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.bgpmanager;
10 import java.util.concurrent.Future;
11
12 import org.apache.karaf.shell.commands.Command;
13 import org.apache.karaf.shell.console.OsgiCommandSupport;
14 import org.opendaylight.bgpmanager.commands.Cache;
15
16 @Command(scope = "odl", name = "display-bgp-config", description="")
17 public class DisplayBgpConfigCli extends OsgiCommandSupport {
18
19     protected Object doExecute() throws Exception {
20         Cache cache = new Cache();
21         return cache.show();
22     } 
23 }