Interface BgpNeighborAsPathOptionsConfig
-
- All Superinterfaces:
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 attributeThis 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
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
YANG identifier of the statement represented by this class.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description org.opendaylight.yangtools.yang.common.Uint8
getAllowOwnAs()
Return allowOwnAs, ornull
if it is not present.Boolean
getReplacePeerAs()
Return replacePeerAs, ornull
if it is not present.Class<? extends BgpNeighborAsPathOptionsConfig>
implementedInterface()
default @NonNull org.opendaylight.yangtools.yang.common.Uint8
requireAllowOwnAs()
Return allowOwnAs, guaranteed to be non-null.default @NonNull Boolean
requireReplacePeerAs()
Return replacePeerAs, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends BgpNeighborAsPathOptionsConfig> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.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
default @NonNull Boolean 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
-
-