Interface ExtendedCommunity
- All Superinterfaces:
org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>,org.opendaylight.yangtools.binding.BindingObject,org.opendaylight.yangtools.binding.DataContainer,org.opendaylight.yangtools.binding.Grouping
- All Known Subinterfaces:
ExtCommunityMember,ExtCommunityMember,ExtendedCommunities
@Generated("mdsal-binding-generator")
public interface ExtendedCommunity
extends org.opendaylight.yangtools.binding.Grouping
This class represents the following YANG schema fragment defined in module bgp-types
grouping extended-community {
leaf transitive {
type boolean;
}
choice extended-community {
case as-specific-extended-community-case {
container as-specific-extended-community {
leaf global-administrator {
type short-as-number;
}
leaf local-administrator {
type binary {
length 4;
}
}
}
}
case inet4-specific-extended-community-case {
container inet4-specific-extended-community {
uses inet4-specific-extended-community-common;
leaf global-administrator {
status deprecated;
type inet:ipv4-address-no-zone;
}
leaf local-administrator {
status deprecated;
type binary {
length 2;
}
}
}
}
case opaque-extended-community-case {
container opaque-extended-community {
leaf value {
type binary {
length 6;
}
}
}
}
case route-target-extended-community-case {
uses route-target-extended-community-grouping;
}
case route-target-ipv4-case {
uses route-target-ipv4-grouping;
}
case as-4-route-target-extended-community-case {
uses as-4-route-target-extended-community-grouping;
}
case route-origin-extended-community-case {
container route-origin-extended-community {
leaf global-administrator {
type short-as-number;
}
leaf local-administrator {
type binary {
length 4;
}
}
}
}
case route-origin-ipv4-case {
container route-origin-ipv4 {
uses route-ipv4-extended-community;
}
}
case link-bandwidth-case {
container link-bandwidth-extended-community {
uses link-bandwidth-extended-community;
}
}
case as-4-generic-spec-extended-community-case {
container as-4-generic-spec-extended-community {
uses as-4-spec-common;
}
}
case as-4-route-origin-extended-community-case {
container as-4-route-origin-extended-community {
uses as-4-spec-common;
}
}
case encapsulation-case {
container encapsulation-extended-community {
uses encapsulation-extended-community;
}
}
case vrf-route-import-extended-community-case {
container vrf-route-import-extended-community {
uses inet4-specific-extended-community-common;
}
}
case source-as-4-extended-community-case {
container source-as-4-extended-community {
uses source-as-4-extended-community-grouping;
}
}
case source-as-extended-community-case {
container source-as-extended-community {
uses source-as-extended-community-grouping;
}
}
}
}
-
Method Summary
Modifier and TypeMethodDescriptionReturn extendedCommunity, ornullif it is not present.Return transitive, ornullif it is not present.default @NonNull BooleanReturn transitive, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
-
Method Details
-
getTransitive
Boolean getTransitive()Return transitive, ornullif it is not present.- Returns:
Booleantransitive, ornullif it is not present.
-
requireTransitive
Return transitive, guaranteed to be non-null.- Returns:
Booleantransitive, guaranteed to be non-null.- Throws:
NoSuchElementException- if transitive is not present
-
getExtendedCommunity
ExtendedCommunity getExtendedCommunity()Return extendedCommunity, ornullif it is not present.- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.extended.community.ExtendedCommunityextendedCommunity, ornullif it is not present.
-