Interface SrlgAttributes
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
Srlg
@Generated("mdsal-binding-generator") public interface SrlgAttributes extends org.opendaylight.yangtools.yang.binding.DataObject
Shared Risk Link Group AttributesThis class represents the following YANG schema fragment defined in module ted
grouping srlg-attributes { list interface-switching-capabilities { key switching-capability; leaf switching-capability { type ted:switching-capabilities; } leaf encoding { type uint8; } list max-lsp-bandwidth { max-elements 8; key priority; leaf priority { type uint8 { range 0..7; } } leaf bandwidth { type decimal64 { fraction-digits 2; } } } container packet-switch-capable { when "../switching-capability = PSC-1 or ../switching-capability = PSC-2 or ../switching-capability = PSC-3 or ../switching-capability = PSC-4"; leaf minimum-lsp-bandwidth { type decimal64 { fraction-digits 2; } } leaf interface-mtu { type uint16; } } container time-division-multiplex-capable { when "../switching-capability = TDM"; leaf minimum-lsp-bandwidth { type decimal64 { fraction-digits 2; } } leaf indication { type uint16; } } } list srlg-values { key srlg-value; leaf srlg-value { type uint32; } } leaf link-protection-type { type uint16; } }
The schema path to identify an instance is tedsrlg-attributes
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @Nullable Map<InterfaceSwitchingCapabilitiesKey,InterfaceSwitchingCapabilities>
getInterfaceSwitchingCapabilities()
Return interfaceSwitchingCapabilities, ornull
if it is not present.org.opendaylight.yangtools.yang.common.Uint16
getLinkProtectionType()
Return linkProtectionType, ornull
if it is not present.@Nullable Map<SrlgValuesKey,SrlgValues>
getSrlgValues()
Return srlgValues, ornull
if it is not present.Class<? extends SrlgAttributes>
implementedInterface()
default @NonNull Map<InterfaceSwitchingCapabilitiesKey,InterfaceSwitchingCapabilities>
nonnullInterfaceSwitchingCapabilities()
Return interfaceSwitchingCapabilities, or an empty list if it is not present.default @NonNull Map<SrlgValuesKey,SrlgValues>
nonnullSrlgValues()
Return srlgValues, or an empty list if it is not present.default @NonNull org.opendaylight.yangtools.yang.common.Uint16
requireLinkProtectionType()
Return linkProtectionType, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends SrlgAttributes> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getInterfaceSwitchingCapabilities
@Nullable Map<InterfaceSwitchingCapabilitiesKey,InterfaceSwitchingCapabilities> getInterfaceSwitchingCapabilities()
Return interfaceSwitchingCapabilities, ornull
if it is not present.List of interface capabilities for this interface
- Returns:
Map<InterfaceSwitchingCapabilitiesKey, InterfaceSwitchingCapabilities>
interfaceSwitchingCapabilities, ornull
if it is not present.
-
nonnullInterfaceSwitchingCapabilities
default @NonNull Map<InterfaceSwitchingCapabilitiesKey,InterfaceSwitchingCapabilities> nonnullInterfaceSwitchingCapabilities()
Return interfaceSwitchingCapabilities, or an empty list if it is not present.- Returns:
Map<InterfaceSwitchingCapabilitiesKey, InterfaceSwitchingCapabilities>
interfaceSwitchingCapabilities, or an empty list if it is not present.
-
getSrlgValues
@Nullable Map<SrlgValuesKey,SrlgValues> getSrlgValues()
Return srlgValues, ornull
if it is not present.List of Shared Risk Link Group this interface belongs to.
- Returns:
Map<SrlgValuesKey, SrlgValues>
srlgValues, ornull
if it is not present.
-
nonnullSrlgValues
default @NonNull Map<SrlgValuesKey,SrlgValues> nonnullSrlgValues()
Return srlgValues, or an empty list if it is not present.- Returns:
Map<SrlgValuesKey, SrlgValues>
srlgValues, or an empty list if it is not present.
-
getLinkProtectionType
org.opendaylight.yangtools.yang.common.Uint16 getLinkProtectionType()
Return linkProtectionType, ornull
if it is not present.Link Protection Type desired for this link
- Returns:
Uint16
linkProtectionType, ornull
if it is not present.
-
requireLinkProtectionType
default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireLinkProtectionType()
Return linkProtectionType, guaranteed to be non-null.Link Protection Type desired for this link
- Returns:
Uint16
linkProtectionType, guaranteed to be non-null.- Throws:
NoSuchElementException
- if linkProtectionType is not present
-
-