Class VplsCommand

  • All Implemented Interfaces:
    org.apache.karaf.shell.api.action.Action, org.onosproject.codec.CodecContext

    public class VplsCommand
    extends org.onosproject.cli.AbstractShellCommand
    CLI to interact with the VPLS application.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.onosproject.net.intf.InterfaceService interfaceService  
      protected Vpls vpls  
      • Fields inherited from class org.onosproject.cli.AbstractShellCommand

        log
    • Constructor Summary

      Constructors 
      Constructor Description
      VplsCommand()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addIface​(java.lang.String vplsName, java.lang.String ifaceName)
      Adds an inteterface to a VPLS.
      protected void cleanVpls()
      Remove all VPLS.
      protected void create​(java.lang.String vplsName)
      Creates a new VPLS.
      protected void delete​(java.lang.String vplsName)
      Deletes a VPLS.
      protected void doExecute()  
      protected void list()
      Lists the configured VPLSs.
      protected void removeIface​(java.lang.String vplsName, java.lang.String ifaceName)
      Removes an interface from a VPLS.
      protected void setEncap​(java.lang.String vplsName, java.lang.String encap)
      Sets the encapsulation type for a VPLS.
      protected void show​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.onosproject.codec.CodecContext

        decode, encode
    • Field Detail

      • vpls

        protected Vpls vpls
      • interfaceService

        protected org.onosproject.net.intf.InterfaceService interfaceService
    • Constructor Detail

      • VplsCommand

        public VplsCommand()
    • Method Detail

      • doExecute

        protected void doExecute()
        Specified by:
        doExecute in class org.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 VLPS
        ifaceName - 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 VLPS
        ifaceName - 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 VPLS
        encap - 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.