Interface BgpNeighborTransportConfig
- 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 BgpNeighborTransportConfig
extends org.opendaylight.yangtools.yang.binding.DataObject
Configuration parameters relating to the transport protocol used by the BGP
session to the peer
This class represents the following YANG schema fragment defined in module openconfig-bgp
grouping bgp-neighbor-transport_config {
leaf tcp-mss {
type uint16;
}
leaf mtu-discovery {
type boolean;
default false;
}
leaf passive-mode {
type boolean;
default false;
}
leaf local-address {
type union {
type inet:ip-address;
type string;
}
}
}
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classThis class represents the following YANG schema fragment defined in module openconfig-bgp -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionReturn localAddress, ornullif it is not present.Return mtuDiscovery, ornullif it is not present.Return passiveMode, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint16Return tcpMss, ornullif it is not present.Class<? extends BgpNeighborTransportConfig>default @NonNull BgpNeighborTransportConfig.LocalAddressReturn localAddress, guaranteed to be non-null.default @NonNull BooleanReturn mtuDiscovery, guaranteed to be non-null.default @NonNull BooleanReturn passiveMode, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint16Return tcpMss, 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 BgpNeighborTransportConfig> implementedInterface()- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getTcpMss
org.opendaylight.yangtools.yang.common.Uint16 getTcpMss()Return tcpMss, ornullif it is not present.Sets the max segment size for BGP TCP sessions.- Returns:
Uint16tcpMss, ornullif it is not present.
-
requireTcpMss
default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireTcpMss()Return tcpMss, guaranteed to be non-null.Sets the max segment size for BGP TCP sessions.- Returns:
Uint16tcpMss, guaranteed to be non-null.- Throws:
NoSuchElementException- if tcpMss is not present
-
getMtuDiscovery
Boolean getMtuDiscovery()Return mtuDiscovery, ornullif it is not present.Turns path mtu discovery for BGP TCP sessions on (true) or off (false)- Returns:
BooleanmtuDiscovery, ornullif it is not present.
-
requireMtuDiscovery
Return mtuDiscovery, guaranteed to be non-null.Turns path mtu discovery for BGP TCP sessions on (true) or off (false)- Returns:
BooleanmtuDiscovery, guaranteed to be non-null.- Throws:
NoSuchElementException- if mtuDiscovery is not present
-
getPassiveMode
Boolean getPassiveMode()Return passiveMode, ornullif it is not present.Wait for peers to issue requests to open a BGP session, rather than initiating sessions from the local router.- Returns:
BooleanpassiveMode, ornullif it is not present.
-
requirePassiveMode
Return passiveMode, guaranteed to be non-null.Wait for peers to issue requests to open a BGP session, rather than initiating sessions from the local router.- Returns:
BooleanpassiveMode, guaranteed to be non-null.- Throws:
NoSuchElementException- if passiveMode is not present
-
getLocalAddress
BgpNeighborTransportConfig.LocalAddress getLocalAddress()Return localAddress, ornullif it is not present.Set the local IP (either IPv4 or IPv6) address to use for the session when sending BGP update messages. This may be expressed as either an IP address or reference to the name of an interface.- Returns:
LocalAddresslocalAddress, ornullif it is not present.
-
requireLocalAddress
Return localAddress, guaranteed to be non-null.Set the local IP (either IPv4 or IPv6) address to use for the session when sending BGP update messages. This may be expressed as either an IP address or reference to the name of an interface.- Returns:
LocalAddresslocalAddress, guaranteed to be non-null.- Throws:
NoSuchElementException- if localAddress is not present
-