Interface BgpNeighborAsPathOptionsConfig
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
,org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator")
public interface BgpNeighborAsPathOptionsConfig
extends org.opendaylight.yangtools.yang.binding.DataObject
Configuration parameters allowing manipulation of the AS_PATH attribute
This class represents the following YANG schema fragment defined in module openconfig-bgp
grouping bgp-neighbor-as-path-options_config { leaf allow-own-as { type uint8; default 0; } leaf replace-peer-as { type boolean; default false; } }
-
Field Summary
Modifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yangtools.yang.common.Uint8
Return allowOwnAs, ornull
if it is not present.Return replacePeerAs, ornull
if it is not present.Class<? extends BgpNeighborAsPathOptionsConfig>
default @NonNull org.opendaylight.yangtools.yang.common.Uint8
Return allowOwnAs, guaranteed to be non-null.default @NonNull Boolean
Return replacePeerAs, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends BgpNeighborAsPathOptionsConfig> implementedInterface()- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getAllowOwnAs
org.opendaylight.yangtools.yang.common.Uint8 getAllowOwnAs()Return allowOwnAs, ornull
if it is not present.Specify the number of occurrences of the local BGP speaker's AS that can occur within the AS_PATH before it is rejected.
- Returns:
Uint8
allowOwnAs, ornull
if it is not present.
-
requireAllowOwnAs
default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireAllowOwnAs()Return allowOwnAs, guaranteed to be non-null.Specify the number of occurrences of the local BGP speaker's AS that can occur within the AS_PATH before it is rejected.
- Returns:
Uint8
allowOwnAs, guaranteed to be non-null.- Throws:
NoSuchElementException
- if allowOwnAs is not present
-
getReplacePeerAs
Boolean getReplacePeerAs()Return replacePeerAs, ornull
if it is not present.Replace occurrences of the peer's AS in the AS_PATH with the local autonomous system number
- Returns:
Boolean
replacePeerAs, ornull
if it is not present.
-
requireReplacePeerAs
Return replacePeerAs, guaranteed to be non-null.Replace occurrences of the peer's AS in the AS_PATH with the local autonomous system number
- Returns:
Boolean
replacePeerAs, guaranteed to be non-null.- Throws:
NoSuchElementException
- if replacePeerAs is not present
-