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()  
    • 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​(String vplsName,
                                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​(String vplsName)
        Creates a new VPLS.
        Parameters:
        vplsName - the name of the VLPS
      • delete

        protected void delete​(String vplsName)
        Deletes a VPLS.
        Parameters:
        vplsName - the name of the VLPS
      • list

        protected void list()
        Lists the configured VPLSs.
      • removeIface

        protected void removeIface​(String vplsName,
                                   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​(String vplsName,
                                String encap)
        Sets the encapsulation type for a VPLS.
        Parameters:
        vplsName - the name of the VPLS
        encap - the encapsulation type
      • show

        protected void show​(String vplsName)
        Shows the details of one or more VPLSs.
        Parameters:
        vplsName - the name of the VPLS
      • cleanVpls

        protected void cleanVpls()
        Remove all VPLS.