Check Interfaces#
Workflows → CICheck Interfaces
The CheckInterfaces workflow is used to check the health of Interfaces. It loops over all nodes selected by the nodeSelectors and nodes properties, and checks every interface that matches the label(s) specified in the interfaceSelectors property.
Checks#
By default, the workflow checks that all members of all selected Interfaces are operationally up. Additional checks can be run against the counters of each interface. Each check monitors a particular metric for waitTimeSeconds seconds and fails if the timer has increased during this window.
Unless explicitly mentioned, these checks are only supported on Nokia SR Linux and SR OS.
EthernetCRC: checks if any CRC error frames were receivedEthernetFrameSize: checks for oversized, undersized (< 64 bytes), and jabber (oversized with bad CRC) frames received on the interfaceEthernetPauseFrames: checks for received pause frames that indicate congestionCarrierTransitions: checks whether the link is "flapping"DiscardedPackets: checks whether packets were discarded on ingress or egressTransceiverHealth: checks whether the transceiver has reset during the time windowLACPErrors: checks for any errors reported through the Link Aggregation Control Protocol (LACP)IfPacketErrors: checks for packet errors both in the ingress and egress direction
Dependencies#
The CheckInterfaces workflow does not depend on any other resources.
Referenced resources#
TopoNode#
The workflow selects nodes that it will check interfaces on through the nodeSelectors and nodes properties.
Note
Only interfaces that have a matching Interface will be checked.
Examples#
apiVersion: interfaces.eda.nokia.com/v1
kind: CheckInterfaces
metadata:
name: checkinterfaces-20b8144f-a4b6-488a-ac5b-4c5f8cc27502
namespace: eda
spec:
interfaceSelectors:
- eda.nokia.com/role = interSwitch
checkStateCounters:
skip: false
waitTimeSeconds: 30
checks:
- LACPErrors
- TransceiverHealth
nodeSelectors:
- eda.nokia.com/role = leaf
- eda.nokia.com/role = spine
cat << 'EOF' | kubectl apply -f -
apiVersion: interfaces.eda.nokia.com/v1
kind: CheckInterfaces
metadata:
name: checkinterfaces-20b8144f-a4b6-488a-ac5b-4c5f8cc27502
namespace: eda
spec:
interfaceSelectors:
- eda.nokia.com/role = interSwitch
checkStateCounters:
skip: false
waitTimeSeconds: 30
checks:
- LACPErrors
- TransceiverHealth
nodeSelectors:
- eda.nokia.com/role = leaf
- eda.nokia.com/role = spine
EOF
Custom Resource Definition#
To browse the Custom Resource Definition go to crd.eda.dev.
CheckInterfaces
SPEC
CheckInterfacesSpec defines the desired state of CheckInterfaces
-
Configure checking state paths for erroneous counter increments.
-
Which checks to run in the CheckStateCounters stage. If none are specified, all checks will be run.
-
Boolean to indicate if checking for Interface Errors needs to be skipped.
default: false -
Wait Time (seconds) sample interval to verify if error counters increased.
default: 30format: int32range: 10 to 900
-
STATUS
CheckInterfacesStatus defines the observed state of CheckInterfaces
-
Details contains the results of the checks performed on each node. Each entry in the list corresponds to a node where the Operational State has been checked.
-
-
Details of the interface check result, if available.
-
-
Checks that failed on the interface, if any.
-
Interface Name
-
Indicates the current operational state of the Interface.
-
The administrative status of the Interface.
-
Indicates when this Interface last changed state.
-
List of members in this Interface.
-
-
The administrative status of this member.
-
The name of the interface in normalized format.
-
Indicates when this member last changed state.
-
The node on which the interface is configured.
-
Node specific interface name, for example "ethernet-1/1", "1/1/c1/1".
-
Indicates the current operational state of this member.
enum: "Up", "Down", "Degraded", +2 more -
Indicates the operational speed of the member.
-
-
-
Indicates the current operational state of the Interface.
enum: "Up", "Down", "Degraded", +2 more -
Indicates the operational speed of the Interface in aggregate.
-
-
-
-
Error message, if the interface check failed.
-
Node the interface was checked on.
-
Indicates if the interface check was successful.
-
-
Aggregate result of the Flow
default: "Failed"enum: "Success", "Failed", "Warning"