Interface OpenMessage
- 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:
Open
,OpenMsg
,PduOpenTlv
,ReceivedOpen
,SentOpen
@Generated("mdsal-binding-generator")
public interface OpenMessage
extends org.opendaylight.yangtools.binding.Grouping
Open Message
This class represents the following YANG schema fragment defined in module bgp-message
grouping open-message { leaf version { type protocol-version; default 4; } leaf my-as-number { type uint16; default 23456; } leaf hold-timer { type uint16; } leaf bgp-identifier { type inet:ipv4-address-no-zone; } list bgp-parameters { list optional-capabilities { container c-parameters { container as4-bytes-capability { leaf as-number { type inet:as-number; } } container bgp-extended-message-capability { presence "Indicates peer is able to send/receive 64K messages"; } } } } }
-
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone
Return bgpIdentifier, ornull
if it is not present.@Nullable List
<BgpParameters> Return bgpParameters, ornull
if it is not present.org.opendaylight.yangtools.yang.common.Uint16
Return holdTimer, ornull
if it is not present.org.opendaylight.yangtools.yang.common.Uint16
Return myAsNumber, ornull
if it is not present.Return version, ornull
if it is not present.default @NonNull List
<BgpParameters> Return bgpParameters, or an empty list if it is not present.default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone
Return bgpIdentifier, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint16
Return holdTimer, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint16
Return myAsNumber, guaranteed to be non-null.default @NonNull ProtocolVersion
Return version, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
-
Method Details
-
getVersion
ProtocolVersion getVersion()Return version, ornull
if it is not present.- Returns:
ProtocolVersion
version, ornull
if it is not present.
-
requireVersion
Return version, guaranteed to be non-null.- Returns:
ProtocolVersion
version, guaranteed to be non-null.- Throws:
NoSuchElementException
- if version is not present
-
getMyAsNumber
org.opendaylight.yangtools.yang.common.Uint16 getMyAsNumber()Return myAsNumber, ornull
if it is not present.- Returns:
Uint16
myAsNumber, ornull
if it is not present.
-
requireMyAsNumber
default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireMyAsNumber()Return myAsNumber, guaranteed to be non-null.- Returns:
Uint16
myAsNumber, guaranteed to be non-null.- Throws:
NoSuchElementException
- if myAsNumber is not present
-
getHoldTimer
org.opendaylight.yangtools.yang.common.Uint16 getHoldTimer()Return holdTimer, ornull
if it is not present.- Returns:
Uint16
holdTimer, ornull
if it is not present.
-
requireHoldTimer
default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireHoldTimer()Return holdTimer, guaranteed to be non-null.- Returns:
Uint16
holdTimer, guaranteed to be non-null.- Throws:
NoSuchElementException
- if holdTimer is not present
-
getBgpIdentifier
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone getBgpIdentifier()Return bgpIdentifier, ornull
if it is not present.- Returns:
Ipv4AddressNoZone
bgpIdentifier, ornull
if it is not present.
-
requireBgpIdentifier
default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone requireBgpIdentifier()Return bgpIdentifier, guaranteed to be non-null.- Returns:
Ipv4AddressNoZone
bgpIdentifier, guaranteed to be non-null.- Throws:
NoSuchElementException
- if bgpIdentifier is not present
-
getBgpParameters
@Nullable List<BgpParameters> getBgpParameters()Return bgpParameters, ornull
if it is not present.- Returns:
List<BgpParameters>
bgpParameters, ornull
if it is not present.
-
nonnullBgpParameters
Return bgpParameters, or an empty list if it is not present.- Returns:
List<BgpParameters>
bgpParameters, or an empty list if it is not present.
-