Interface BgpNeighborConfig
- 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
@Generated("mdsal-binding-generator")
public interface BgpNeighborConfig
extends org.opendaylight.yangtools.binding.Grouping
Neighbor level configuration items.
This class represents the following YANG schema fragment defined in module openconfig-bgp
grouping bgp-neighbor_config {
leaf peer-as {
type inet:as-number;
}
leaf local-as {
type inet:as-number;
}
leaf peer-type {
type bgp-types:peer-type;
}
leaf auth-password {
type string;
}
leaf remove-private-as {
type bgp-types:remove-private-as-option;
}
leaf route-flap-damping {
type boolean;
default false;
}
leaf send-community {
type bgp-types:community-type;
default NONE;
}
leaf description {
type string;
}
}
-
Method Summary
Modifier and TypeMethodDescriptionReturn authPassword, ornullif it is not present.Return description, ornullif it is not present.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumberReturn localAs, ornullif it is not present.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumberReturn peerAs, ornullif it is not present.Return peerType, ornullif it is not present.Return removePrivateAs, ornullif it is not present.Return routeFlapDamping, ornullif it is not present.Return sendCommunity, ornullif it is not present.default @NonNull StringReturn authPassword, guaranteed to be non-null.default @NonNull StringReturn description, guaranteed to be non-null.default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumberReturn localAs, guaranteed to be non-null.default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumberReturn peerAs, guaranteed to be non-null.default @NonNull PeerTypeReturn peerType, guaranteed to be non-null.default @NonNull RemovePrivateAsOptionReturn removePrivateAs, guaranteed to be non-null.default @NonNull BooleanReturn routeFlapDamping, guaranteed to be non-null.default @NonNull CommunityTypeReturn sendCommunity, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
-
Method Details
-
getPeerAs
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber getPeerAs()Return peerAs, ornullif it is not present.AS number of the peer.- Returns:
AsNumberpeerAs, ornullif it is not present.
-
requirePeerAs
default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber requirePeerAs()Return peerAs, guaranteed to be non-null.AS number of the peer.- Returns:
AsNumberpeerAs, guaranteed to be non-null.- Throws:
NoSuchElementException- if peerAs is not present
-
getLocalAs
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber getLocalAs()Return localAs, ornullif it is not present.The local autonomous system number that is to be used when establishing sessions with the remote peer or peer group, if this differs from the global BGP router autonomous system number.- Returns:
AsNumberlocalAs, ornullif it is not present.
-
requireLocalAs
default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber requireLocalAs()Return localAs, guaranteed to be non-null.The local autonomous system number that is to be used when establishing sessions with the remote peer or peer group, if this differs from the global BGP router autonomous system number.- Returns:
AsNumberlocalAs, guaranteed to be non-null.- Throws:
NoSuchElementException- if localAs is not present
-
getPeerType
PeerType getPeerType()Return peerType, ornullif it is not present.Explicitly designate the peer or peer group as internal (iBGP) or external (eBGP).- Returns:
PeerTypepeerType, ornullif it is not present.
-
requirePeerType
Return peerType, guaranteed to be non-null.Explicitly designate the peer or peer group as internal (iBGP) or external (eBGP).- Returns:
PeerTypepeerType, guaranteed to be non-null.- Throws:
NoSuchElementException- if peerType is not present
-
getAuthPassword
String getAuthPassword()Return authPassword, ornullif it is not present.Configures an MD5 authentication password for use with neighboring devices.- Returns:
StringauthPassword, ornullif it is not present.
-
requireAuthPassword
Return authPassword, guaranteed to be non-null.Configures an MD5 authentication password for use with neighboring devices.- Returns:
StringauthPassword, guaranteed to be non-null.- Throws:
NoSuchElementException- if authPassword is not present
-
getRemovePrivateAs
RemovePrivateAsOption getRemovePrivateAs()Return removePrivateAs, ornullif it is not present.Remove private AS numbers from updates sent to peers.- Returns:
RemovePrivateAsOptionremovePrivateAs, ornullif it is not present.
-
requireRemovePrivateAs
Return removePrivateAs, guaranteed to be non-null.Remove private AS numbers from updates sent to peers.- Returns:
RemovePrivateAsOptionremovePrivateAs, guaranteed to be non-null.- Throws:
NoSuchElementException- if removePrivateAs is not present
-
getRouteFlapDamping
Boolean getRouteFlapDamping()Return routeFlapDamping, ornullif it is not present.Enable route flap damping.- Returns:
BooleanrouteFlapDamping, ornullif it is not present.
-
requireRouteFlapDamping
Return routeFlapDamping, guaranteed to be non-null.Enable route flap damping.- Returns:
BooleanrouteFlapDamping, guaranteed to be non-null.- Throws:
NoSuchElementException- if routeFlapDamping is not present
-
getSendCommunity
CommunityType getSendCommunity()Return sendCommunity, ornullif it is not present.Specify which types of community should be sent to the neighbor or group. The default is to not send the community attribute- Returns:
CommunityTypesendCommunity, ornullif it is not present.
-
requireSendCommunity
Return sendCommunity, guaranteed to be non-null.Specify which types of community should be sent to the neighbor or group. The default is to not send the community attribute- Returns:
CommunityTypesendCommunity, guaranteed to be non-null.- Throws:
NoSuchElementException- if sendCommunity is not present
-
getDescription
String getDescription()Return description, ornullif it is not present.An optional textual description (intended primarily for use with a peer or group- Returns:
Stringdescription, ornullif it is not present.
-
requireDescription
Return description, guaranteed to be non-null.An optional textual description (intended primarily for use with a peer or group- Returns:
Stringdescription, guaranteed to be non-null.- Throws:
NoSuchElementException- if description is not present
-