Interface TrunkService

    • Method Detail

      • create

        Trunk create​(Trunk trunk)
        Creates a trunk
        Parameters:
        trunk - the trunk to create
        Returns:
        the created trunk object
      • delete

        ActionResponse delete​(String trunkId)
        Delete a trunk
        Parameters:
        trunkId - ID of the trunk
        Returns:
        action response
      • get

        Trunk get​(String trunkId)
        Get a trunk by ID
        Parameters:
        trunkId - the trunk ID
        Returns:
        the trunk object
      • update

        Trunk update​(Trunk trunk)
        Updates a trunk object
        Parameters:
        trunk - the trunk object to update
        Returns:
        the updated trunk object
      • list

        List<? extends Trunk> list()
        Lists all trunks
        Returns:
        a list of trunks
      • listTrunkSubports

        List<NeutronTrunkSubport> listTrunkSubports​(String trunkId)
        List the subports associated with the trunk
        Parameters:
        trunkId - trunk ID
        Returns:
        a list of subports
      • addTrunkSubport

        Trunk addTrunkSubport​(String trunkId,
                              TrunkSubport subPort)
        Adds a subport to the specified Trunk
        Parameters:
        trunkId - ID of the trunk
        subPort - subport object to add
        Returns:
        the updated trunk object
      • removeTrunkSubport

        Trunk removeTrunkSubport​(String trunkId,
                                 String portId)
        Removes subport from the specified trunk
        Parameters:
        trunkId - trunk ID
        portId - the ID of the subport to remove
        Returns:
        trunk object with the subport removed