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 setsThis 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-setTo create instances of this class use
CommunitySetBuilder
.- See Also:
CommunitySetBuilder
,CommunitySetKey
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @Nullable List<Communities>
getCommunities()
members of the community setString
getCommunitySetName()
name / label of the community set -- this is used to reference the set in match conditionsdefault Class<CommunitySet>
implementedInterface()
CommunitySetKey
key()
default @NonNull List<Communities>
nonnullCommunities()
-
-
-
Method Detail
-
implementedInterface
default Class<CommunitySet> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getCommunitySetName
String getCommunitySetName()
name / label of the community set -- this is used to reference the set in match conditions- Returns:
java.lang.String
communitySetName
, ornull
if not present
-
getCommunities
@Nullable List<Communities> getCommunities()
members of the community set- Returns:
java.util.List
communities
, ornull
if not present
-
nonnullCommunities
default @NonNull List<Communities> nonnullCommunities()
- Returns:
java.util.List
communities
, or an empty list if it is not present
-
key
CommunitySetKey key()
- Specified by:
key
in interfaceorg.opendaylight.yangtools.yang.binding.Identifiable<CommunitySetKey>
-
-