Interface L2policyService

  • All Known Implementing Classes:
    L2policyServiceImpl

    public interface L2policyService
    This interface defines all methods for the manipulation of l2policy
    Author:
    vinod borole
    • Method Detail

      • list

        List<? extends L2Policy> list()
        List all l2 policies
        Returns:
        List of l2 policies
      • list

        List<? extends L2Policy> list​(Map<String,​String> filteringParams)
        Returns list of l2 policies filtered by parameters.
        Parameters:
        filteringParams - map (name, value) of filtering parameters
      • get

        L2Policy get​(String id)
        Get the specified l2 policy by ID
        Parameters:
        id - the l2 policy id
        Returns:
        l2 policy or null if not found
      • delete

        ActionResponse delete​(String id)
        Delete of the l2 policy
        Parameters:
        id - the l2 policy id
        Returns:
        the action response
      • create

        L2Policy create​(L2Policy l2Policy)
        Create a new l2 policy
        Parameters:
        l2 - policy
        Returns:
        the newly created l2 policy
      • update

        L2Policy update​(String l2PolicyId,
                        L2Policy l2Policy)
        Updates an existing l2 policy
        Parameters:
        l2 - policy identifier
        l2 - policy that is be used to updated
        Returns:
        the updated l2 policy