Interface SrlgAttributes
- 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:
Srlg
@Generated("mdsal-binding-generator")
public interface SrlgAttributes
extends org.opendaylight.yangtools.binding.Grouping
Shared Risk Link Group Attributes
This 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;
}
}
-
Method Summary
Modifier and TypeMethodDescriptionReturn interfaceSwitchingCapabilities, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint16Return linkProtectionType, ornullif it is not present.@Nullable Map<SrlgValuesKey, SrlgValues> Return srlgValues, ornullif it is not present.default @NonNull Map<InterfaceSwitchingCapabilitiesKey, InterfaceSwitchingCapabilities> Return interfaceSwitchingCapabilities, or an empty list if it is not present.default @NonNull Map<SrlgValuesKey, SrlgValues> Return srlgValues, or an empty list if it is not present.default @NonNull org.opendaylight.yangtools.yang.common.Uint16Return linkProtectionType, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
-
Method Details
-
getInterfaceSwitchingCapabilities
@Nullable Map<InterfaceSwitchingCapabilitiesKey,InterfaceSwitchingCapabilities> getInterfaceSwitchingCapabilities()Return interfaceSwitchingCapabilities, ornullif it is not present.List of interface capabilities for this interface- Returns:
Map<InterfaceSwitchingCapabilitiesKey, InterfaceSwitchingCapabilities>interfaceSwitchingCapabilities, ornullif 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, ornullif it is not present.List of Shared Risk Link Group this interface belongs to.- Returns:
Map<SrlgValuesKey, SrlgValues>srlgValues, ornullif it is not present.
-
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, ornullif it is not present.Link Protection Type desired for this link- Returns:
Uint16linkProtectionType, ornullif 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:
Uint16linkProtectionType, guaranteed to be non-null.- Throws:
NoSuchElementException- if linkProtectionType is not present
-