Package org.onosproject.vpls.cli
Class VplsCommand
- java.lang.Object
-
- org.onosproject.cli.AbstractShellCommand
-
- org.onosproject.vpls.cli.VplsCommand
-
- All Implemented Interfaces:
org.apache.karaf.shell.api.action.Action,org.onosproject.codec.CodecContext
public class VplsCommand extends org.onosproject.cli.AbstractShellCommandCLI to interact with the VPLS application.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.onosproject.net.intf.InterfaceServiceinterfaceServiceprotected Vplsvpls
-
Constructor Summary
Constructors Constructor Description VplsCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddIface(java.lang.String vplsName, java.lang.String ifaceName)Adds an inteterface to a VPLS.protected voidcleanVpls()Remove all VPLS.protected voidcreate(java.lang.String vplsName)Creates a new VPLS.protected voiddelete(java.lang.String vplsName)Deletes a VPLS.protected voiddoExecute()protected voidlist()Lists the configured VPLSs.protected voidremoveIface(java.lang.String vplsName, java.lang.String ifaceName)Removes an interface from a VPLS.protected voidsetEncap(java.lang.String vplsName, java.lang.String encap)Sets the encapsulation type for a VPLS.protected voidshow(java.lang.String vplsName)Shows the details of one or more VPLSs.-
Methods inherited from class org.onosproject.cli.AbstractShellCommand
annotations, annotations, annotations, appId, codec, error, execute, get, getService, jsonForEntity, mapper, outputJson, print
-
-
-
-
Field Detail
-
vpls
protected Vpls vpls
-
interfaceService
protected org.onosproject.net.intf.InterfaceService interfaceService
-
-
Method Detail
-
doExecute
protected void doExecute()
- Specified by:
doExecutein classorg.onosproject.cli.AbstractShellCommand
-
addIface
protected void addIface(java.lang.String vplsName, java.lang.String ifaceName)Adds an inteterface to a VPLS.- Parameters:
vplsName- the name of the VLPSifaceName- the name of the interface to add
-
create
protected void create(java.lang.String vplsName)
Creates a new VPLS.- Parameters:
vplsName- the name of the VLPS
-
delete
protected void delete(java.lang.String vplsName)
Deletes a VPLS.- Parameters:
vplsName- the name of the VLPS
-
list
protected void list()
Lists the configured VPLSs.
-
removeIface
protected void removeIface(java.lang.String vplsName, java.lang.String ifaceName)Removes an interface from a VPLS.- Parameters:
vplsName- the name of the VLPSifaceName- the name of the interface to remove
-
setEncap
protected void setEncap(java.lang.String vplsName, java.lang.String encap)Sets the encapsulation type for a VPLS.- Parameters:
vplsName- the name of the VPLSencap- the encapsulation type
-
show
protected void show(java.lang.String vplsName)
Shows the details of one or more VPLSs.- Parameters:
vplsName- the name of the VPLS
-
cleanVpls
protected void cleanVpls()
Remove all VPLS.
-
-