Interface CommunitySet

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.Augmentable<CommunitySet>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.ChildOf<CommunitySets>, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject, org.opendaylight.yangtools.yang.binding.Identifiable<CommunitySetKey>

    public interface CommunitySet
    extends org.opendaylight.yangtools.yang.binding.ChildOf<CommunitySets>, org.opendaylight.yangtools.yang.binding.Augmentable<CommunitySet>, org.opendaylight.yangtools.yang.binding.Identifiable<CommunitySetKey>
    Definitions for community sets

    This class represents the following YANG schema fragment defined in module openconfig-bgp-policy

     list community-set {
       key community-set-name;
       leaf community-set-name {
         type string;
       }
       list communities {
         uses bgp-t:community;
       }
     }
     
    The schema path to identify an instance is openconfig-bgp-policy/routing-policy/defined-sets/(http://openconfig.net/yang/bgp-policy?revision=2015-10-09)bgp-defined-sets/community-sets/community-set

    To create instances of this class use CommunitySetBuilder.

    See Also:
    CommunitySetBuilder, CommunitySetKey
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

        default Class<CommunitySet> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getCommunitySetName

        @Nullable String getCommunitySetName()
        name / label of the community set -- this is used to reference the set in match conditions
        Returns:
        java.lang.String communitySetName, or null if not present
      • getCommunities

        @Nullable List<Communities> getCommunities()
        members of the community set
        Returns:
        java.util.List communities, or null if not present
      • nonnullCommunities

        default @NonNull List<Communities> nonnullCommunities()
        Returns:
        java.util.List communities, or an empty list if it is not present