X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=vpnservice%2Fbgpmanager%2Fbgpmanager-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetvirt%2Fbgpmanager%2Fcommands%2FMisc.java;h=62ebe6b0c29a8b77e2ce086f7fb6062d4fc56c44;hb=3cae060719233b07e35347f58f1d9dabe63cce6c;hp=0f0f87e3e3008c08ae031f49cddadf9ad482679e;hpb=03b266a67d94f5d2eec39946a793ac7227c29598;p=netvirt.git diff --git a/vpnservice/bgpmanager/bgpmanager-impl/src/main/java/org/opendaylight/netvirt/bgpmanager/commands/Misc.java b/vpnservice/bgpmanager/bgpmanager-impl/src/main/java/org/opendaylight/netvirt/bgpmanager/commands/Misc.java index 0f0f87e3e3..62ebe6b0c2 100644 --- a/vpnservice/bgpmanager/bgpmanager-impl/src/main/java/org/opendaylight/netvirt/bgpmanager/commands/Misc.java +++ b/vpnservice/bgpmanager/bgpmanager-impl/src/main/java/org/opendaylight/netvirt/bgpmanager/commands/Misc.java @@ -8,22 +8,24 @@ package org.opendaylight.netvirt.bgpmanager.commands; -import org.apache.karaf.shell.commands.*; +import org.apache.karaf.shell.commands.Argument; +import org.apache.karaf.shell.commands.Command; +import org.apache.karaf.shell.commands.Option; import org.apache.karaf.shell.console.OsgiCommandSupport; import org.opendaylight.netvirt.bgpmanager.BgpManager; -@Command(scope = "odl", name = "bgp-misc", +@Command(scope = "odl", name = "bgp-misc", description = "Add or delete miscellaneous BGP config options") public class Misc extends OsgiCommandSupport { private static final String LF = "--log-file"; private static final String LL = "--log-level"; private static final String SP = "--stalepath-time"; - @Argument(name="add|del", description="The desired operation", + @Argument(name="add|del", description="The desired operation", required=true, multiValued = false) private String action = null; - @Option(name=LF, aliases={"-f"}, + @Option(name=LF, aliases={"-f"}, description="Log file name", required=false, multiValued=false) private String file = null;