2025-03-17 07:33:51 +01:00
|
|
|
# Copyright (c) 2023-2025 Arista Networks, Inc.
|
2025-02-05 11:39:50 +01:00
|
|
|
# Use of this source code is governed by the Apache License 2.0
|
|
|
|
# that can be found in the LICENSE file.
|
|
|
|
"""Tests for anta.tests.routing.ospf.py."""
|
|
|
|
|
2025-02-05 11:54:06 +01:00
|
|
|
# pylint: disable=too-many-lines
|
|
|
|
|
2025-02-05 11:39:50 +01:00
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from typing import Any
|
|
|
|
|
2025-02-05 11:54:06 +01:00
|
|
|
import pytest
|
|
|
|
|
|
|
|
from anta.tests.routing.isis import (
|
|
|
|
VerifyISISInterfaceMode,
|
|
|
|
VerifyISISNeighborCount,
|
|
|
|
VerifyISISNeighborState,
|
|
|
|
VerifyISISSegmentRoutingAdjacencySegments,
|
|
|
|
VerifyISISSegmentRoutingDataplane,
|
|
|
|
VerifyISISSegmentRoutingTunnels,
|
|
|
|
)
|
2025-02-05 11:54:55 +01:00
|
|
|
from tests.units.anta_tests import test
|
2025-02-05 11:39:50 +01:00
|
|
|
|
|
|
|
DATA: list[dict[str, Any]] = [
|
|
|
|
{
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "success-default-vrf",
|
2025-02-05 11:39:50 +01:00
|
|
|
"test": VerifyISISNeighborState,
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"neighbors": {
|
|
|
|
"0168.0000.0111": {
|
|
|
|
"adjacencies": [
|
|
|
|
{
|
|
|
|
"hostname": "s1-p01",
|
|
|
|
"circuitId": "83",
|
|
|
|
"interfaceName": "Ethernet1",
|
|
|
|
"state": "up",
|
|
|
|
"lastHelloTime": 1713688408,
|
|
|
|
"routerIdV4": "1.0.0.111",
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"0168.0000.0112": {
|
|
|
|
"adjacencies": [
|
|
|
|
{
|
|
|
|
"hostname": "s1-p02",
|
|
|
|
"circuitId": "87",
|
|
|
|
"interfaceName": "Ethernet2",
|
|
|
|
"state": "up",
|
|
|
|
"lastHelloTime": 1713688405,
|
|
|
|
"routerIdV4": "1.0.0.112",
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2025-03-17 07:33:51 +01:00
|
|
|
},
|
|
|
|
"customer": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"neighbors": {
|
|
|
|
"0168.0000.0112": {
|
|
|
|
"adjacencies": [
|
|
|
|
{
|
|
|
|
"hostname": "s1-p02",
|
|
|
|
"circuitId": "87",
|
|
|
|
"interfaceName": "Ethernet2",
|
|
|
|
"state": "down",
|
|
|
|
"lastHelloTime": 1713688405,
|
|
|
|
"routerIdV4": "1.0.0.112",
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2025-02-05 11:39:50 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"inputs": None,
|
|
|
|
"expected": {"result": "success"},
|
|
|
|
},
|
|
|
|
{
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "success-multiple-vrfs",
|
2025-02-05 11:39:50 +01:00
|
|
|
"test": VerifyISISNeighborState,
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"neighbors": {
|
|
|
|
"0168.0000.0111": {
|
|
|
|
"adjacencies": [
|
|
|
|
{
|
|
|
|
"hostname": "s1-p01",
|
|
|
|
"circuitId": "83",
|
|
|
|
"interfaceName": "Ethernet1",
|
|
|
|
"state": "up",
|
|
|
|
"lastHelloTime": 1713688408,
|
|
|
|
"routerIdV4": "1.0.0.111",
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2025-03-17 07:33:51 +01:00
|
|
|
},
|
|
|
|
"customer": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"neighbors": {
|
|
|
|
"0168.0000.0112": {
|
|
|
|
"adjacencies": [
|
|
|
|
{
|
|
|
|
"hostname": "s1-p02",
|
|
|
|
"circuitId": "87",
|
|
|
|
"interfaceName": "Ethernet2",
|
|
|
|
"state": "up",
|
|
|
|
"lastHelloTime": 1713688405,
|
|
|
|
"routerIdV4": "1.0.0.112",
|
|
|
|
}
|
|
|
|
]
|
2025-02-05 11:39:50 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2025-03-17 07:33:51 +01:00
|
|
|
}
|
|
|
|
},
|
2025-02-05 11:39:50 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
],
|
2025-03-17 07:33:51 +01:00
|
|
|
"inputs": {"check_all_vrfs": True},
|
2025-02-05 11:39:50 +01:00
|
|
|
"expected": {"result": "success"},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "failure",
|
|
|
|
"test": VerifyISISNeighborState,
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"neighbors": {
|
|
|
|
"0168.0000.0111": {
|
|
|
|
"adjacencies": [
|
|
|
|
{
|
|
|
|
"hostname": "s1-p01",
|
|
|
|
"circuitId": "83",
|
|
|
|
"interfaceName": "Ethernet1",
|
|
|
|
"state": "down",
|
|
|
|
"lastHelloTime": 1713688408,
|
|
|
|
"routerIdV4": "1.0.0.111",
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"0168.0000.0112": {
|
|
|
|
"adjacencies": [
|
|
|
|
{
|
|
|
|
"hostname": "s1-p02",
|
|
|
|
"circuitId": "87",
|
|
|
|
"interfaceName": "Ethernet2",
|
|
|
|
"state": "up",
|
|
|
|
"lastHelloTime": 1713688405,
|
|
|
|
"routerIdV4": "1.0.0.112",
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"inputs": None,
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
2025-03-17 07:33:51 +01:00
|
|
|
"messages": ["Instance: CORE-ISIS VRF: default Interface: Ethernet1 - Incorrect adjacency state - Expected: up Actual: down"],
|
2025-02-05 11:39:50 +01:00
|
|
|
},
|
|
|
|
},
|
2025-02-05 11:54:06 +01:00
|
|
|
{
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "skipped-not-configured",
|
2025-02-05 11:54:06 +01:00
|
|
|
"test": VerifyISISNeighborState,
|
|
|
|
"eos_data": [
|
2025-03-17 07:33:51 +01:00
|
|
|
{"vrfs": {}},
|
2025-02-05 11:54:06 +01:00
|
|
|
],
|
|
|
|
"inputs": None,
|
2025-03-17 07:33:51 +01:00
|
|
|
"expected": {
|
|
|
|
"result": "skipped",
|
|
|
|
"messages": ["IS-IS not configured"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "failure-multiple-vrfs",
|
|
|
|
"test": VerifyISISNeighborState,
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"neighbors": {
|
|
|
|
"0168.0000.0111": {
|
|
|
|
"adjacencies": [
|
|
|
|
{
|
|
|
|
"hostname": "s1-p01",
|
|
|
|
"circuitId": "83",
|
|
|
|
"interfaceName": "Ethernet1",
|
|
|
|
"state": "up",
|
|
|
|
"lastHelloTime": 1713688408,
|
|
|
|
"routerIdV4": "1.0.0.111",
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"customer": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"neighbors": {
|
|
|
|
"0168.0000.0112": {
|
|
|
|
"adjacencies": [
|
|
|
|
{
|
|
|
|
"hostname": "s1-p02",
|
|
|
|
"circuitId": "87",
|
|
|
|
"interfaceName": "Ethernet2",
|
|
|
|
"state": "down",
|
|
|
|
"lastHelloTime": 1713688405,
|
|
|
|
"routerIdV4": "1.0.0.112",
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"inputs": {"check_all_vrfs": True},
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
|
|
|
"messages": ["Instance: CORE-ISIS VRF: customer Interface: Ethernet2 - Incorrect adjacency state - Expected: up Actual: down"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "skipped-no-neighbor-detected",
|
|
|
|
"test": VerifyISISNeighborState,
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"neighbors": {},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"customer": {"isisInstances": {"CORE-ISIS": {"neighbors": {}}}},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"inputs": {"check_all_vrfs": True},
|
2025-02-05 11:54:06 +01:00
|
|
|
"expected": {
|
|
|
|
"result": "skipped",
|
|
|
|
"messages": ["No IS-IS neighbor detected"],
|
|
|
|
},
|
|
|
|
},
|
2025-02-05 11:39:50 +01:00
|
|
|
{
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "success-default-vrf",
|
2025-02-05 11:39:50 +01:00
|
|
|
"test": VerifyISISNeighborCount,
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"interfaces": {
|
|
|
|
"Loopback0": {
|
|
|
|
"enabled": True,
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": True,
|
|
|
|
"v4Protection": "disabled",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
"Ethernet1": {
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 1,
|
|
|
|
"linkId": "84",
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": False,
|
|
|
|
"v4Protection": "link",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
"Ethernet2": {
|
|
|
|
"enabled": True,
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 1,
|
|
|
|
"linkId": "88",
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": False,
|
|
|
|
"v4Protection": "link",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"interfaces": [
|
|
|
|
{"name": "Ethernet1", "level": 2, "count": 1},
|
|
|
|
{"name": "Ethernet2", "level": 2, "count": 1},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {"result": "success"},
|
|
|
|
},
|
2025-02-05 11:54:06 +01:00
|
|
|
{
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "success-multiple-VRFs",
|
2025-02-05 11:54:06 +01:00
|
|
|
"test": VerifyISISNeighborCount,
|
|
|
|
"eos_data": [
|
2025-03-17 07:33:51 +01:00
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"interfaces": {
|
|
|
|
"Loopback0": {
|
|
|
|
"enabled": True,
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": True,
|
|
|
|
"v4Protection": "disabled",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
"Ethernet1": {
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 1,
|
|
|
|
"linkId": "84",
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": False,
|
|
|
|
"v4Protection": "link",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
"Ethernet2": {
|
|
|
|
"enabled": True,
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 1,
|
|
|
|
"linkId": "88",
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": False,
|
|
|
|
"v4Protection": "link",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"PROD": {
|
|
|
|
"isisInstances": {
|
|
|
|
"PROD-ISIS": {
|
|
|
|
"interfaces": {
|
|
|
|
"Ethernet3": {
|
|
|
|
"enabled": True,
|
|
|
|
"intfLevels": {
|
|
|
|
"1": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 1,
|
|
|
|
"linkId": "88",
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": False,
|
|
|
|
"v4Protection": "link",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"interfaces": [
|
|
|
|
{"name": "Ethernet1", "level": 2, "count": 1},
|
|
|
|
{"name": "Ethernet2", "level": 2, "count": 1},
|
|
|
|
{"name": "Ethernet3", "vrf": "PROD", "level": 1, "count": 1},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {"result": "success"},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "skipped-not-configured",
|
|
|
|
"test": VerifyISISNeighborCount,
|
|
|
|
"eos_data": [
|
|
|
|
{"vrfs": {}},
|
2025-02-05 11:54:06 +01:00
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"interfaces": [
|
|
|
|
{"name": "Ethernet1", "level": 2, "count": 1},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "skipped",
|
2025-03-17 07:33:51 +01:00
|
|
|
"messages": ["IS-IS not configured"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "failure-interface-not-configured",
|
|
|
|
"test": VerifyISISNeighborCount,
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"interfaces": {
|
|
|
|
"Ethernet1": {
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 0,
|
|
|
|
"linkId": "84",
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": False,
|
|
|
|
"v4Protection": "link",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"interfaces": [
|
|
|
|
{"name": "Ethernet2", "level": 2, "count": 1},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
|
|
|
"messages": ["Interface: Ethernet2 VRF: default Level: 2 - Not configured"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "success-interface-is-in-wrong-vrf",
|
|
|
|
"test": VerifyISISNeighborCount,
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"interfaces": {
|
|
|
|
"Ethernet1": {
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 1,
|
|
|
|
"linkId": "84",
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": False,
|
|
|
|
"v4Protection": "link",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"PROD": {
|
|
|
|
"isisInstances": {
|
|
|
|
"PROD-ISIS": {
|
|
|
|
"interfaces": {
|
|
|
|
"Ethernet2": {
|
|
|
|
"enabled": True,
|
|
|
|
"intfLevels": {
|
|
|
|
"1": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 1,
|
|
|
|
"linkId": "88",
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": False,
|
|
|
|
"v4Protection": "link",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"interfaces": [
|
|
|
|
{"name": "Ethernet2", "level": 2, "count": 1},
|
|
|
|
{"name": "Ethernet1", "vrf": "PROD", "level": 1, "count": 1},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
|
|
|
"messages": ["Interface: Ethernet2 VRF: default Level: 2 - Not configured", "Interface: Ethernet1 VRF: PROD Level: 1 - Not configured"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "failure-wrong-count",
|
|
|
|
"test": VerifyISISNeighborCount,
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"interfaces": {
|
|
|
|
"Ethernet1": {
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 3,
|
|
|
|
"linkId": "84",
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": False,
|
|
|
|
"v4Protection": "link",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"interfaces": [
|
|
|
|
{"name": "Ethernet1", "level": 2, "count": 1},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
|
|
|
"messages": ["Interface: Ethernet1 VRF: default Level: 2 - Neighbor count mismatch - Expected: 1 Actual: 3"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "success-default-vrf",
|
|
|
|
"test": VerifyISISInterfaceMode,
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"interfaces": {
|
|
|
|
"Loopback0": {
|
|
|
|
"enabled": True,
|
|
|
|
"index": 2,
|
|
|
|
"snpa": "0:0:0:0:0:0",
|
|
|
|
"mtu": 65532,
|
|
|
|
"interfaceAddressFamily": "ipv4",
|
|
|
|
"interfaceType": "loopback",
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": True,
|
|
|
|
"v4Protection": "disabled",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
"Ethernet1": {
|
|
|
|
"enabled": True,
|
|
|
|
"index": 132,
|
|
|
|
"snpa": "P2P",
|
|
|
|
"interfaceType": "point-to-point",
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 1,
|
|
|
|
"linkId": "84",
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": False,
|
|
|
|
"v4Protection": "link",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
"Ethernet2": {
|
|
|
|
"enabled": True,
|
|
|
|
"interfaceType": "broadcast",
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 0,
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": True,
|
|
|
|
"v4Protection": "disabled",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"interfaces": [
|
|
|
|
{"name": "Loopback0", "mode": "passive"},
|
|
|
|
{"name": "Ethernet2", "mode": "passive"},
|
|
|
|
{"name": "Ethernet1", "mode": "point-to-point", "vrf": "default"},
|
|
|
|
]
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
2025-03-17 07:33:51 +01:00
|
|
|
"expected": {"result": "success"},
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
|
|
|
{
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "success-multiple-VRFs",
|
|
|
|
"test": VerifyISISInterfaceMode,
|
2025-02-05 11:54:06 +01:00
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"interfaces": {
|
2025-03-17 07:33:51 +01:00
|
|
|
"Loopback0": {
|
|
|
|
"enabled": True,
|
|
|
|
"index": 2,
|
|
|
|
"snpa": "0:0:0:0:0:0",
|
|
|
|
"mtu": 65532,
|
|
|
|
"interfaceAddressFamily": "ipv4",
|
|
|
|
"interfaceType": "loopback",
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": True,
|
|
|
|
"v4Protection": "disabled",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
2025-02-05 11:54:06 +01:00
|
|
|
"Ethernet1": {
|
2025-03-17 07:33:51 +01:00
|
|
|
"enabled": True,
|
|
|
|
"index": 132,
|
|
|
|
"snpa": "P2P",
|
|
|
|
"interfaceType": "point-to-point",
|
2025-02-05 11:54:06 +01:00
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
2025-03-17 07:33:51 +01:00
|
|
|
"numAdjacencies": 1,
|
2025-02-05 11:54:06 +01:00
|
|
|
"linkId": "84",
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": False,
|
|
|
|
"v4Protection": "link",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2025-03-17 07:33:51 +01:00
|
|
|
},
|
|
|
|
"PROD": {
|
2025-02-05 11:54:06 +01:00
|
|
|
"isisInstances": {
|
2025-03-17 07:33:51 +01:00
|
|
|
"PROD-ISIS": {
|
2025-02-05 11:54:06 +01:00
|
|
|
"interfaces": {
|
2025-03-17 07:33:51 +01:00
|
|
|
"Ethernet4": {
|
|
|
|
"enabled": True,
|
|
|
|
"index": 132,
|
|
|
|
"snpa": "P2P",
|
|
|
|
"interfaceType": "point-to-point",
|
2025-02-05 11:54:06 +01:00
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
2025-03-17 07:33:51 +01:00
|
|
|
"numAdjacencies": 1,
|
2025-02-05 11:54:06 +01:00
|
|
|
"linkId": "84",
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": False,
|
|
|
|
"v4Protection": "link",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
2025-03-17 07:33:51 +01:00
|
|
|
"Ethernet5": {
|
|
|
|
"enabled": True,
|
|
|
|
"interfaceType": "broadcast",
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 0,
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": True,
|
|
|
|
"v4Protection": "disabled",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
2025-02-05 11:54:06 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2025-03-17 07:33:51 +01:00
|
|
|
},
|
2025-02-05 11:54:06 +01:00
|
|
|
}
|
2025-03-17 07:33:51 +01:00
|
|
|
}
|
2025-02-05 11:54:06 +01:00
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"interfaces": [
|
2025-03-17 07:33:51 +01:00
|
|
|
{"name": "Loopback0", "mode": "passive"},
|
|
|
|
{"name": "Ethernet1", "mode": "point-to-point", "vrf": "default"},
|
|
|
|
{"name": "Ethernet4", "mode": "point-to-point", "vrf": "PROD"},
|
|
|
|
{"name": "Ethernet5", "mode": "passive", "vrf": "PROD"},
|
2025-02-05 11:54:06 +01:00
|
|
|
]
|
|
|
|
},
|
2025-03-17 07:33:51 +01:00
|
|
|
"expected": {"result": "success"},
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
2025-02-05 11:39:50 +01:00
|
|
|
{
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "failure-interface-not-passive",
|
2025-02-05 11:39:50 +01:00
|
|
|
"test": VerifyISISInterfaceMode,
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"interfaces": {
|
|
|
|
"Loopback0": {
|
|
|
|
"enabled": True,
|
|
|
|
"index": 2,
|
|
|
|
"snpa": "0:0:0:0:0:0",
|
|
|
|
"mtu": 65532,
|
|
|
|
"interfaceAddressFamily": "ipv4",
|
|
|
|
"interfaceType": "loopback",
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": True,
|
|
|
|
"v4Protection": "disabled",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
"Ethernet1": {
|
|
|
|
"enabled": True,
|
|
|
|
"index": 132,
|
|
|
|
"snpa": "P2P",
|
|
|
|
"interfaceType": "point-to-point",
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 1,
|
|
|
|
"linkId": "84",
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": False,
|
|
|
|
"v4Protection": "link",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
"Ethernet2": {
|
|
|
|
"enabled": True,
|
2025-03-17 07:33:51 +01:00
|
|
|
"interfaceType": "point-to-point",
|
2025-02-05 11:39:50 +01:00
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 0,
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
2025-03-17 07:33:51 +01:00
|
|
|
"passive": False,
|
2025-02-05 11:39:50 +01:00
|
|
|
"v4Protection": "disabled",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"interfaces": [
|
|
|
|
{"name": "Loopback0", "mode": "passive"},
|
|
|
|
{"name": "Ethernet2", "mode": "passive"},
|
|
|
|
{"name": "Ethernet1", "mode": "point-to-point", "vrf": "default"},
|
|
|
|
]
|
|
|
|
},
|
2025-03-17 07:33:51 +01:00
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
|
|
|
"messages": ["Interface: Ethernet2 VRF: default Level: 2 - Not running in passive mode"],
|
|
|
|
},
|
2025-02-05 11:39:50 +01:00
|
|
|
},
|
|
|
|
{
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "failure-interface-not-point-to-point",
|
2025-02-05 11:39:50 +01:00
|
|
|
"test": VerifyISISInterfaceMode,
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"interfaces": {
|
|
|
|
"Loopback0": {
|
|
|
|
"enabled": True,
|
|
|
|
"index": 2,
|
|
|
|
"snpa": "0:0:0:0:0:0",
|
|
|
|
"mtu": 65532,
|
|
|
|
"interfaceAddressFamily": "ipv4",
|
|
|
|
"interfaceType": "loopback",
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": True,
|
|
|
|
"v4Protection": "disabled",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
"Ethernet1": {
|
|
|
|
"enabled": True,
|
|
|
|
"index": 132,
|
|
|
|
"snpa": "P2P",
|
2025-03-17 07:33:51 +01:00
|
|
|
"interfaceType": "broadcast",
|
2025-02-05 11:39:50 +01:00
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 1,
|
|
|
|
"linkId": "84",
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": False,
|
|
|
|
"v4Protection": "link",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
"Ethernet2": {
|
|
|
|
"enabled": True,
|
2025-03-17 07:33:51 +01:00
|
|
|
"interfaceType": "broadcast",
|
2025-02-05 11:39:50 +01:00
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 0,
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
2025-03-17 07:33:51 +01:00
|
|
|
"passive": True,
|
2025-02-05 11:39:50 +01:00
|
|
|
"v4Protection": "disabled",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"interfaces": [
|
|
|
|
{"name": "Loopback0", "mode": "passive"},
|
|
|
|
{"name": "Ethernet2", "mode": "passive"},
|
|
|
|
{"name": "Ethernet1", "mode": "point-to-point", "vrf": "default"},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
2025-03-17 07:33:51 +01:00
|
|
|
"messages": ["Interface: Ethernet1 VRF: default Level: 2 - Incorrect interface mode - Expected: point-to-point Actual: broadcast"],
|
2025-02-05 11:39:50 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "failure-interface-wrong-vrf",
|
2025-02-05 11:39:50 +01:00
|
|
|
"test": VerifyISISInterfaceMode,
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
2025-03-17 07:33:51 +01:00
|
|
|
"fake_vrf": {
|
2025-02-05 11:39:50 +01:00
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"interfaces": {
|
|
|
|
"Loopback0": {
|
|
|
|
"enabled": True,
|
|
|
|
"index": 2,
|
|
|
|
"snpa": "0:0:0:0:0:0",
|
|
|
|
"mtu": 65532,
|
|
|
|
"interfaceAddressFamily": "ipv4",
|
|
|
|
"interfaceType": "loopback",
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": True,
|
|
|
|
"v4Protection": "disabled",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
"Ethernet1": {
|
|
|
|
"enabled": True,
|
|
|
|
"index": 132,
|
|
|
|
"snpa": "P2P",
|
2025-03-17 07:33:51 +01:00
|
|
|
"interfaceType": "point-to-point",
|
2025-02-05 11:39:50 +01:00
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 1,
|
|
|
|
"linkId": "84",
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": False,
|
|
|
|
"v4Protection": "link",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
"Ethernet2": {
|
|
|
|
"enabled": True,
|
|
|
|
"interfaceType": "broadcast",
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 0,
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": True,
|
|
|
|
"v4Protection": "disabled",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"interfaces": [
|
|
|
|
{"name": "Loopback0", "mode": "passive"},
|
|
|
|
{"name": "Ethernet2", "mode": "passive"},
|
|
|
|
{"name": "Ethernet1", "mode": "point-to-point", "vrf": "default"},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
2025-03-17 07:33:51 +01:00
|
|
|
"messages": [
|
|
|
|
"Interface: Loopback0 VRF: default Level: 2 - Not configured",
|
|
|
|
"Interface: Ethernet2 VRF: default Level: 2 - Not configured",
|
|
|
|
"Interface: Ethernet1 VRF: default Level: 2 - Not configured",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "skipped-not-configured",
|
|
|
|
"test": VerifyISISInterfaceMode,
|
|
|
|
"eos_data": [{"vrfs": {}}],
|
|
|
|
"inputs": {
|
|
|
|
"interfaces": [
|
|
|
|
{"name": "Loopback0", "mode": "passive"},
|
|
|
|
{"name": "Ethernet2", "mode": "passive"},
|
|
|
|
{"name": "Ethernet1", "mode": "point-to-point", "vrf": "default"},
|
|
|
|
]
|
2025-02-05 11:39:50 +01:00
|
|
|
},
|
2025-03-17 07:33:51 +01:00
|
|
|
"expected": {"result": "skipped", "messages": ["IS-IS not configured"]},
|
2025-02-05 11:39:50 +01:00
|
|
|
},
|
|
|
|
{
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "failure-multiple-VRFs",
|
2025-02-05 11:39:50 +01:00
|
|
|
"test": VerifyISISInterfaceMode,
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
2025-03-17 07:33:51 +01:00
|
|
|
"default": {
|
2025-02-05 11:39:50 +01:00
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"interfaces": {
|
|
|
|
"Loopback0": {
|
|
|
|
"enabled": True,
|
|
|
|
"index": 2,
|
|
|
|
"snpa": "0:0:0:0:0:0",
|
|
|
|
"mtu": 65532,
|
|
|
|
"interfaceAddressFamily": "ipv4",
|
|
|
|
"interfaceType": "loopback",
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": True,
|
|
|
|
"v4Protection": "disabled",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
"Ethernet1": {
|
|
|
|
"enabled": True,
|
|
|
|
"index": 132,
|
|
|
|
"snpa": "P2P",
|
2025-03-17 07:33:51 +01:00
|
|
|
"interfaceType": "broadcast",
|
2025-02-05 11:39:50 +01:00
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 1,
|
|
|
|
"linkId": "84",
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": False,
|
|
|
|
"v4Protection": "link",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
2025-03-17 07:33:51 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"PROD": {
|
|
|
|
"isisInstances": {
|
|
|
|
"PROD-ISIS": {
|
|
|
|
"interfaces": {
|
|
|
|
"Ethernet4": {
|
|
|
|
"enabled": True,
|
|
|
|
"index": 132,
|
|
|
|
"snpa": "P2P",
|
|
|
|
"interfaceType": "broadcast",
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 1,
|
|
|
|
"linkId": "84",
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
|
|
|
"passive": False,
|
|
|
|
"v4Protection": "link",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
"Ethernet5": {
|
2025-02-05 11:39:50 +01:00
|
|
|
"enabled": True,
|
|
|
|
"interfaceType": "broadcast",
|
|
|
|
"intfLevels": {
|
|
|
|
"2": {
|
|
|
|
"ipv4Metric": 10,
|
|
|
|
"numAdjacencies": 0,
|
|
|
|
"sharedSecretProfile": "",
|
|
|
|
"isisAdjacencies": [],
|
2025-03-17 07:33:51 +01:00
|
|
|
"passive": False,
|
2025-02-05 11:39:50 +01:00
|
|
|
"v4Protection": "disabled",
|
|
|
|
"v6Protection": "disabled",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"interfaceSpeed": 1000,
|
|
|
|
"areaProxyBoundary": False,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2025-03-17 07:33:51 +01:00
|
|
|
},
|
2025-02-05 11:39:50 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"interfaces": [
|
|
|
|
{"name": "Loopback0", "mode": "passive"},
|
|
|
|
{"name": "Ethernet1", "mode": "point-to-point", "vrf": "default"},
|
2025-03-17 07:33:51 +01:00
|
|
|
{"name": "Ethernet4", "mode": "point-to-point", "vrf": "PROD"},
|
|
|
|
{"name": "Ethernet5", "mode": "passive", "vrf": "PROD"},
|
2025-02-05 11:39:50 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
|
|
|
"messages": [
|
2025-03-17 07:33:51 +01:00
|
|
|
"Interface: Ethernet1 VRF: default Level: 2 - Incorrect interface mode - Expected: point-to-point Actual: broadcast",
|
|
|
|
"Interface: Ethernet4 VRF: PROD Level: 2 - Incorrect interface mode - Expected: point-to-point Actual: broadcast",
|
|
|
|
"Interface: Ethernet5 VRF: PROD Level: 2 - Not running in passive mode",
|
2025-02-05 11:39:50 +01:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2025-02-05 11:54:06 +01:00
|
|
|
{
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "skipped-not-configured",
|
2025-02-05 11:54:06 +01:00
|
|
|
"test": VerifyISISSegmentRoutingAdjacencySegments,
|
|
|
|
"eos_data": [{"vrfs": {}}],
|
|
|
|
"inputs": {
|
|
|
|
"instances": [
|
|
|
|
{
|
|
|
|
"name": "CORE-ISIS",
|
|
|
|
"vrf": "default",
|
|
|
|
"segments": [
|
|
|
|
{
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"address": "10.0.1.3",
|
|
|
|
"sid_origin": "dynamic",
|
|
|
|
}
|
|
|
|
],
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2025-03-17 07:33:51 +01:00
|
|
|
"expected": {"result": "skipped", "messages": ["IS-IS not configured"]},
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"test": VerifyISISSegmentRoutingAdjacencySegments,
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "success",
|
2025-02-05 11:54:06 +01:00
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"dataPlane": "MPLS",
|
|
|
|
"routerId": "1.0.0.11",
|
|
|
|
"systemId": "0168.0000.0011",
|
|
|
|
"hostname": "s1-pe01",
|
|
|
|
"adjSidAllocationMode": "SrOnly",
|
|
|
|
"adjSidPoolBase": 116384,
|
|
|
|
"adjSidPoolSize": 16384,
|
|
|
|
"adjacencySegments": [
|
|
|
|
{
|
|
|
|
"ipAddress": "10.0.1.3",
|
|
|
|
"localIntf": "Ethernet2",
|
|
|
|
"sid": 116384,
|
|
|
|
"lan": False,
|
|
|
|
"sidOrigin": "dynamic",
|
|
|
|
"protection": "unprotected",
|
|
|
|
"flags": {
|
|
|
|
"b": False,
|
|
|
|
"v": True,
|
|
|
|
"l": True,
|
|
|
|
"f": False,
|
|
|
|
"s": False,
|
|
|
|
},
|
|
|
|
"level": 2,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"ipAddress": "10.0.1.1",
|
|
|
|
"localIntf": "Ethernet1",
|
|
|
|
"sid": 116385,
|
|
|
|
"lan": False,
|
|
|
|
"sidOrigin": "dynamic",
|
|
|
|
"protection": "unprotected",
|
|
|
|
"flags": {
|
|
|
|
"b": False,
|
|
|
|
"v": True,
|
|
|
|
"l": True,
|
|
|
|
"f": False,
|
|
|
|
"s": False,
|
|
|
|
},
|
|
|
|
"level": 2,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"receivedGlobalAdjacencySegments": [],
|
|
|
|
"misconfiguredAdjacencySegments": [],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"instances": [
|
|
|
|
{
|
|
|
|
"name": "CORE-ISIS",
|
|
|
|
"vrf": "default",
|
|
|
|
"segments": [
|
|
|
|
{
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"address": "10.0.1.3",
|
|
|
|
"sid_origin": "dynamic",
|
|
|
|
}
|
|
|
|
],
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "success",
|
|
|
|
"messages": [],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"test": VerifyISISSegmentRoutingAdjacencySegments,
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "failure-segment-not-found",
|
2025-02-05 11:54:06 +01:00
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"dataPlane": "MPLS",
|
|
|
|
"routerId": "1.0.0.11",
|
|
|
|
"systemId": "0168.0000.0011",
|
|
|
|
"hostname": "s1-pe01",
|
|
|
|
"adjSidAllocationMode": "SrOnly",
|
|
|
|
"adjSidPoolBase": 116384,
|
|
|
|
"adjSidPoolSize": 16384,
|
|
|
|
"adjacencySegments": [
|
|
|
|
{
|
|
|
|
"ipAddress": "10.0.1.3",
|
|
|
|
"localIntf": "Ethernet2",
|
|
|
|
"sid": 116384,
|
|
|
|
"lan": False,
|
|
|
|
"sidOrigin": "dynamic",
|
|
|
|
"protection": "unprotected",
|
|
|
|
"flags": {
|
|
|
|
"b": False,
|
|
|
|
"v": True,
|
|
|
|
"l": True,
|
|
|
|
"f": False,
|
|
|
|
"s": False,
|
|
|
|
},
|
|
|
|
"level": 2,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"ipAddress": "10.0.1.1",
|
|
|
|
"localIntf": "Ethernet1",
|
|
|
|
"sid": 116385,
|
|
|
|
"lan": False,
|
|
|
|
"sidOrigin": "dynamic",
|
|
|
|
"protection": "unprotected",
|
|
|
|
"flags": {
|
|
|
|
"b": False,
|
|
|
|
"v": True,
|
|
|
|
"l": True,
|
|
|
|
"f": False,
|
|
|
|
"s": False,
|
|
|
|
},
|
|
|
|
"level": 2,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"receivedGlobalAdjacencySegments": [],
|
|
|
|
"misconfiguredAdjacencySegments": [],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"instances": [
|
|
|
|
{
|
|
|
|
"name": "CORE-ISIS",
|
|
|
|
"vrf": "default",
|
|
|
|
"segments": [
|
|
|
|
{
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"address": "10.0.1.3",
|
|
|
|
"sid_origin": "dynamic",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"interface": "Ethernet3",
|
|
|
|
"address": "10.0.1.2",
|
|
|
|
"sid_origin": "dynamic",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
2025-03-17 07:33:51 +01:00
|
|
|
"messages": ["Instance: CORE-ISIS VRF: default Local Intf: Ethernet3 Adj IP Address: 10.0.1.2 - Adjacency segment not found"],
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"test": VerifyISISSegmentRoutingAdjacencySegments,
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "failure-no-segments-incorrect-instance",
|
2025-02-05 11:54:06 +01:00
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"dataPlane": "MPLS",
|
|
|
|
"routerId": "1.0.0.11",
|
|
|
|
"systemId": "0168.0000.0011",
|
|
|
|
"hostname": "s1-pe01",
|
|
|
|
"adjSidAllocationMode": "SrOnly",
|
|
|
|
"adjSidPoolBase": 116384,
|
|
|
|
"adjSidPoolSize": 16384,
|
|
|
|
"adjacencySegments": [
|
|
|
|
{
|
|
|
|
"ipAddress": "10.0.1.3",
|
|
|
|
"localIntf": "Ethernet2",
|
|
|
|
"sid": 116384,
|
|
|
|
"lan": False,
|
|
|
|
"sidOrigin": "dynamic",
|
|
|
|
"protection": "unprotected",
|
|
|
|
"flags": {
|
|
|
|
"b": False,
|
|
|
|
"v": True,
|
|
|
|
"l": True,
|
|
|
|
"f": False,
|
|
|
|
"s": False,
|
|
|
|
},
|
|
|
|
"level": 2,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"ipAddress": "10.0.1.1",
|
|
|
|
"localIntf": "Ethernet1",
|
|
|
|
"sid": 116385,
|
|
|
|
"lan": False,
|
|
|
|
"sidOrigin": "dynamic",
|
|
|
|
"protection": "unprotected",
|
|
|
|
"flags": {
|
|
|
|
"b": False,
|
|
|
|
"v": True,
|
|
|
|
"l": True,
|
|
|
|
"f": False,
|
|
|
|
"s": False,
|
|
|
|
},
|
|
|
|
"level": 2,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"receivedGlobalAdjacencySegments": [],
|
|
|
|
"misconfiguredAdjacencySegments": [],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"instances": [
|
|
|
|
{
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "CORE-ISIS2",
|
|
|
|
"vrf": "default",
|
2025-02-05 11:54:06 +01:00
|
|
|
"segments": [
|
|
|
|
{
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"address": "10.0.1.3",
|
|
|
|
"sid_origin": "dynamic",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"interface": "Ethernet3",
|
|
|
|
"address": "10.0.1.2",
|
|
|
|
"sid_origin": "dynamic",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
2025-03-17 07:33:51 +01:00
|
|
|
"messages": ["Instance: CORE-ISIS2 VRF: default - No adjacency segments found"],
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"test": VerifyISISSegmentRoutingAdjacencySegments,
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "failure-incorrect-segment-level",
|
2025-02-05 11:54:06 +01:00
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"dataPlane": "MPLS",
|
|
|
|
"routerId": "1.0.0.11",
|
|
|
|
"systemId": "0168.0000.0011",
|
|
|
|
"hostname": "s1-pe01",
|
|
|
|
"adjSidAllocationMode": "SrOnly",
|
|
|
|
"adjSidPoolBase": 116384,
|
|
|
|
"adjSidPoolSize": 16384,
|
|
|
|
"adjacencySegments": [
|
|
|
|
{
|
|
|
|
"ipAddress": "10.0.1.3",
|
|
|
|
"localIntf": "Ethernet2",
|
|
|
|
"sid": 116384,
|
|
|
|
"lan": False,
|
|
|
|
"sidOrigin": "dynamic",
|
|
|
|
"protection": "unprotected",
|
|
|
|
"flags": {
|
|
|
|
"b": False,
|
|
|
|
"v": True,
|
|
|
|
"l": True,
|
|
|
|
"f": False,
|
|
|
|
"s": False,
|
|
|
|
},
|
|
|
|
"level": 2,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"receivedGlobalAdjacencySegments": [],
|
|
|
|
"misconfiguredAdjacencySegments": [],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"instances": [
|
|
|
|
{
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "CORE-ISIS",
|
2025-02-05 11:54:06 +01:00
|
|
|
"vrf": "default",
|
|
|
|
"segments": [
|
|
|
|
{
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"address": "10.0.1.3",
|
|
|
|
"sid_origin": "dynamic",
|
2025-03-17 07:33:51 +01:00
|
|
|
"level": 1, # Wrong level
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
2025-03-17 07:33:51 +01:00
|
|
|
"messages": ["Instance: CORE-ISIS VRF: default Local Intf: Ethernet2 Adj IP Address: 10.0.1.3 - Incorrect IS-IS level - Expected: 1 Actual: 2"],
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"test": VerifyISISSegmentRoutingAdjacencySegments,
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "failure-incorrect-sid-origin",
|
2025-02-05 11:54:06 +01:00
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"dataPlane": "MPLS",
|
|
|
|
"routerId": "1.0.0.11",
|
|
|
|
"systemId": "0168.0000.0011",
|
|
|
|
"hostname": "s1-pe01",
|
|
|
|
"adjSidAllocationMode": "SrOnly",
|
|
|
|
"adjSidPoolBase": 116384,
|
|
|
|
"adjSidPoolSize": 16384,
|
|
|
|
"adjacencySegments": [
|
|
|
|
{
|
|
|
|
"ipAddress": "10.0.1.3",
|
|
|
|
"localIntf": "Ethernet2",
|
|
|
|
"sid": 116384,
|
|
|
|
"lan": False,
|
2025-03-17 07:33:51 +01:00
|
|
|
"sidOrigin": "configured",
|
2025-02-05 11:54:06 +01:00
|
|
|
"protection": "unprotected",
|
|
|
|
"flags": {
|
|
|
|
"b": False,
|
|
|
|
"v": True,
|
|
|
|
"l": True,
|
|
|
|
"f": False,
|
|
|
|
"s": False,
|
|
|
|
},
|
|
|
|
"level": 2,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"receivedGlobalAdjacencySegments": [],
|
|
|
|
"misconfiguredAdjacencySegments": [],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"instances": [
|
|
|
|
{
|
|
|
|
"name": "CORE-ISIS",
|
|
|
|
"vrf": "default",
|
|
|
|
"segments": [
|
|
|
|
{
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"address": "10.0.1.3",
|
|
|
|
"sid_origin": "dynamic",
|
2025-03-17 07:33:51 +01:00
|
|
|
"level": 2, # Wrong level
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
|
|
|
"messages": [
|
2025-03-17 07:33:51 +01:00
|
|
|
"Instance: CORE-ISIS VRF: default Local Intf: Ethernet2 Adj IP Address: 10.0.1.3 - Incorrect SID origin - Expected: dynamic Actual: configured"
|
2025-02-05 11:54:06 +01:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"test": VerifyISISSegmentRoutingDataplane,
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "success",
|
2025-02-05 11:54:06 +01:00
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"dataPlane": "MPLS",
|
|
|
|
"routerId": "1.0.0.11",
|
|
|
|
"systemId": "0168.0000.0011",
|
|
|
|
"hostname": "s1-pe01",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"instances": [
|
|
|
|
{
|
|
|
|
"name": "CORE-ISIS",
|
|
|
|
"vrf": "default",
|
|
|
|
"dataplane": "MPLS",
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "success",
|
|
|
|
"messages": [],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"test": VerifyISISSegmentRoutingDataplane,
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "failure-incorrect-dataplane",
|
2025-02-05 11:54:06 +01:00
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"dataPlane": "MPLS",
|
|
|
|
"routerId": "1.0.0.11",
|
|
|
|
"systemId": "0168.0000.0011",
|
|
|
|
"hostname": "s1-pe01",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"instances": [
|
|
|
|
{
|
|
|
|
"name": "CORE-ISIS",
|
|
|
|
"vrf": "default",
|
|
|
|
"dataplane": "unset",
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
2025-03-17 07:33:51 +01:00
|
|
|
"messages": ["Instance: CORE-ISIS VRF: default - Data-plane not correctly configured - Expected: UNSET Actual: MPLS"],
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"test": VerifyISISSegmentRoutingDataplane,
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "failure-instance-not-configured",
|
2025-02-05 11:54:06 +01:00
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"vrfs": {
|
|
|
|
"default": {
|
|
|
|
"isisInstances": {
|
|
|
|
"CORE-ISIS": {
|
|
|
|
"dataPlane": "MPLS",
|
|
|
|
"routerId": "1.0.0.11",
|
|
|
|
"systemId": "0168.0000.0011",
|
|
|
|
"hostname": "s1-pe01",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"instances": [
|
|
|
|
{
|
|
|
|
"name": "CORE-ISIS2",
|
|
|
|
"vrf": "default",
|
|
|
|
"dataplane": "unset",
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
2025-03-17 07:33:51 +01:00
|
|
|
"messages": ["Instance: CORE-ISIS2 VRF: default - Not configured"],
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"test": VerifyISISSegmentRoutingDataplane,
|
2025-03-17 07:33:51 +01:00
|
|
|
"name": "skipped-not-configured",
|
2025-02-05 11:54:06 +01:00
|
|
|
"eos_data": [{"vrfs": {}}],
|
|
|
|
"inputs": {
|
|
|
|
"instances": [
|
|
|
|
{
|
|
|
|
"name": "CORE-ISIS",
|
2025-03-17 07:33:51 +01:00
|
|
|
"vrf": "default",
|
2025-02-05 11:54:06 +01:00
|
|
|
"dataplane": "unset",
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "skipped",
|
2025-03-17 07:33:51 +01:00
|
|
|
"messages": ["IS-IS not configured"],
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"test": VerifyISISSegmentRoutingTunnels,
|
|
|
|
"name": "runs successfully",
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"entries": {
|
|
|
|
"3": {
|
|
|
|
"endpoint": "1.0.0.122/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.1",
|
|
|
|
"interface": "Ethernet1",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.3",
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"31": {
|
|
|
|
"endpoint": "1.0.0.13/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.1",
|
|
|
|
"interface": "Ethernet1",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.3",
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"32": {
|
|
|
|
"endpoint": "1.0.0.122/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.1",
|
|
|
|
"interface": "Ethernet1",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.3",
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"2": {
|
|
|
|
"endpoint": "1.0.0.111/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "tunnel",
|
|
|
|
"tunnelId": {"type": "TI-LFA", "index": 4},
|
|
|
|
"labels": ["3"],
|
|
|
|
}
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"entries": [
|
|
|
|
{"endpoint": "1.0.0.122/32"},
|
|
|
|
{"endpoint": "1.0.0.13/32", "vias": [{"type": "ip"}]},
|
|
|
|
{
|
|
|
|
"endpoint": "1.0.0.111/32",
|
|
|
|
"vias": [{"type": "tunnel", "tunnel_id": "ti-lfa"}],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"endpoint": "1.0.0.122/32",
|
|
|
|
"vias": [
|
|
|
|
{"interface": "Ethernet1", "nexthop": "10.0.1.1"}, # Testing empty type
|
|
|
|
{"type": "ip", "interface": "Ethernet2", "nexthop": "10.0.1.3"},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "success",
|
|
|
|
"messages": [],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"test": VerifyISISSegmentRoutingTunnels,
|
|
|
|
"name": "is skipped if not entry founf in EOS",
|
|
|
|
"eos_data": [{"entries": {}}],
|
|
|
|
"inputs": {
|
|
|
|
"entries": [
|
|
|
|
{"endpoint": "1.0.0.122/32"},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "skipped",
|
2025-03-17 07:33:51 +01:00
|
|
|
"messages": ["IS-IS-SR not configured"],
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"test": VerifyISISSegmentRoutingTunnels,
|
|
|
|
"name": "runs successfully",
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"entries": {
|
|
|
|
"2": {
|
|
|
|
"endpoint": "1.0.0.111/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "tunnel",
|
|
|
|
"tunnelId": {"type": "TI-LFA", "index": 4},
|
|
|
|
"labels": ["3"],
|
|
|
|
}
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"entries": [
|
|
|
|
{"endpoint": "1.0.0.122/32"},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
2025-03-17 07:33:51 +01:00
|
|
|
"messages": ["Endpoint: 1.0.0.122/32 - Tunnel not found"],
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"test": VerifyISISSegmentRoutingTunnels,
|
|
|
|
"name": "fails with incorrect tunnel type",
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"entries": {
|
|
|
|
"3": {
|
|
|
|
"endpoint": "1.0.0.122/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.1",
|
|
|
|
"interface": "Ethernet1",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.3",
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"31": {
|
|
|
|
"endpoint": "1.0.0.13/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.1",
|
|
|
|
"interface": "Ethernet1",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.3",
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"32": {
|
|
|
|
"endpoint": "1.0.0.122/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.1",
|
|
|
|
"interface": "Ethernet1",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.3",
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"2": {
|
|
|
|
"endpoint": "1.0.0.111/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "tunnel",
|
|
|
|
"tunnelId": {"type": "TI-LFA", "index": 4},
|
|
|
|
"labels": ["3"],
|
|
|
|
}
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"entries": [
|
|
|
|
{"endpoint": "1.0.0.122/32"},
|
|
|
|
{"endpoint": "1.0.0.13/32", "vias": [{"type": "tunnel"}]},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
2025-03-17 07:33:51 +01:00
|
|
|
"messages": ["Endpoint: 1.0.0.13/32 Type: tunnel - Tunnel is incorrect"],
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"test": VerifyISISSegmentRoutingTunnels,
|
|
|
|
"name": "fails with incorrect nexthop",
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"entries": {
|
|
|
|
"3": {
|
|
|
|
"endpoint": "1.0.0.122/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.1",
|
|
|
|
"interface": "Ethernet1",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.3",
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"31": {
|
|
|
|
"endpoint": "1.0.0.13/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.1",
|
|
|
|
"interface": "Ethernet1",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.3",
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"32": {
|
|
|
|
"endpoint": "1.0.0.122/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.1",
|
|
|
|
"interface": "Ethernet1",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.3",
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"2": {
|
|
|
|
"endpoint": "1.0.0.111/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "tunnel",
|
|
|
|
"tunnelId": {"type": "TI-LFA", "index": 4},
|
|
|
|
"labels": ["3"],
|
|
|
|
}
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"entries": [
|
|
|
|
{"endpoint": "1.0.0.122/32"},
|
|
|
|
{"endpoint": "1.0.0.13/32", "vias": [{"type": "ip"}]},
|
|
|
|
{
|
|
|
|
"endpoint": "1.0.0.122/32",
|
|
|
|
"vias": [
|
|
|
|
{"type": "ip", "interface": "Ethernet1", "nexthop": "10.0.1.2"},
|
|
|
|
{"type": "ip", "interface": "Ethernet2", "nexthop": "10.0.1.3"},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
2025-03-17 07:33:51 +01:00
|
|
|
"messages": ["Endpoint: 1.0.0.122/32 Next-hop: 10.0.1.2 Type: ip Interface: Ethernet1 - Tunnel is incorrect"],
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"test": VerifyISISSegmentRoutingTunnels,
|
|
|
|
"name": "fails with incorrect nexthop",
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"entries": {
|
|
|
|
"3": {
|
|
|
|
"endpoint": "1.0.0.122/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.1",
|
|
|
|
"interface": "Ethernet1",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.3",
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"31": {
|
|
|
|
"endpoint": "1.0.0.13/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.1",
|
|
|
|
"interface": "Ethernet1",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.3",
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"32": {
|
|
|
|
"endpoint": "1.0.0.122/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.1",
|
|
|
|
"interface": "Ethernet1",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.3",
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"2": {
|
|
|
|
"endpoint": "1.0.0.111/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "tunnel",
|
|
|
|
"tunnelId": {"type": "TI-LFA", "index": 4},
|
|
|
|
"labels": ["3"],
|
|
|
|
}
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"entries": [
|
|
|
|
{"endpoint": "1.0.0.122/32"},
|
|
|
|
{"endpoint": "1.0.0.13/32", "vias": [{"type": "ip"}]},
|
|
|
|
{
|
|
|
|
"endpoint": "1.0.0.122/32",
|
|
|
|
"vias": [
|
|
|
|
{"type": "ip", "interface": "Ethernet4", "nexthop": "10.0.1.1"},
|
|
|
|
{"type": "ip", "interface": "Ethernet2", "nexthop": "10.0.1.3"},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
2025-03-17 07:33:51 +01:00
|
|
|
"messages": ["Endpoint: 1.0.0.122/32 Next-hop: 10.0.1.1 Type: ip Interface: Ethernet4 - Tunnel is incorrect"],
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"test": VerifyISISSegmentRoutingTunnels,
|
|
|
|
"name": "fails with incorrect interface",
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"entries": {
|
|
|
|
"3": {
|
|
|
|
"endpoint": "1.0.0.122/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.1",
|
|
|
|
"interface": "Ethernet1",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.3",
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"31": {
|
|
|
|
"endpoint": "1.0.0.13/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.1",
|
|
|
|
"interface": "Ethernet1",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.3",
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"32": {
|
|
|
|
"endpoint": "1.0.0.122/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.1",
|
|
|
|
"interface": "Ethernet1",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.3",
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"2": {
|
|
|
|
"endpoint": "1.0.0.111/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "tunnel",
|
|
|
|
"tunnelId": {"type": "TI-LFA", "index": 4},
|
|
|
|
"labels": ["3"],
|
|
|
|
}
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"entries": [
|
|
|
|
{"endpoint": "1.0.0.122/32"},
|
|
|
|
{"endpoint": "1.0.0.13/32", "vias": [{"type": "ip"}]},
|
|
|
|
{
|
|
|
|
"endpoint": "1.0.0.122/32",
|
|
|
|
"vias": [
|
|
|
|
{"type": "ip", "interface": "Ethernet1", "nexthop": "10.0.1.2"},
|
|
|
|
{"type": "ip", "interface": "Ethernet2", "nexthop": "10.0.1.3"},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
2025-03-17 07:33:51 +01:00
|
|
|
"messages": ["Endpoint: 1.0.0.122/32 Next-hop: 10.0.1.2 Type: ip Interface: Ethernet1 - Tunnel is incorrect"],
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"test": VerifyISISSegmentRoutingTunnels,
|
|
|
|
"name": "fails with incorrect tunnel ID type",
|
|
|
|
"eos_data": [
|
|
|
|
{
|
|
|
|
"entries": {
|
|
|
|
"3": {
|
|
|
|
"endpoint": "1.0.0.122/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.1",
|
|
|
|
"interface": "Ethernet1",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.3",
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"31": {
|
|
|
|
"endpoint": "1.0.0.13/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.1",
|
|
|
|
"interface": "Ethernet1",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.3",
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"32": {
|
|
|
|
"endpoint": "1.0.0.122/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.1",
|
|
|
|
"interface": "Ethernet1",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ip",
|
|
|
|
"nexthop": "10.0.1.3",
|
|
|
|
"interface": "Ethernet2",
|
|
|
|
"labels": ["900021"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"2": {
|
|
|
|
"endpoint": "1.0.0.111/32",
|
|
|
|
"vias": [
|
|
|
|
{
|
|
|
|
"type": "tunnel",
|
2025-03-17 07:33:51 +01:00
|
|
|
"tunnelId": {"type": "unset", "index": 4},
|
2025-02-05 11:54:06 +01:00
|
|
|
"labels": ["3"],
|
|
|
|
}
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": {
|
|
|
|
"entries": [
|
|
|
|
{"endpoint": "1.0.0.122/32"},
|
|
|
|
{"endpoint": "1.0.0.13/32", "vias": [{"type": "ip"}]},
|
|
|
|
{
|
|
|
|
"endpoint": "1.0.0.111/32",
|
|
|
|
"vias": [
|
2025-03-17 07:33:51 +01:00
|
|
|
{"type": "tunnel", "tunnel_id": "ti-lfa"},
|
2025-02-05 11:54:06 +01:00
|
|
|
],
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "failure",
|
2025-03-17 07:33:51 +01:00
|
|
|
"messages": ["Endpoint: 1.0.0.111/32 Type: tunnel Tunnel ID: ti-lfa - Tunnel is incorrect"],
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
|
|
|
},
|
2025-03-17 07:33:51 +01:00
|
|
|
{
|
|
|
|
"test": VerifyISISSegmentRoutingTunnels,
|
|
|
|
"name": "skipped with ISIS-SR not running",
|
|
|
|
"eos_data": [{"entries": {}}],
|
|
|
|
"inputs": {
|
|
|
|
"entries": [
|
|
|
|
{"endpoint": "1.0.0.122/32"},
|
|
|
|
{"endpoint": "1.0.0.13/32", "vias": [{"type": "ip"}]},
|
|
|
|
{
|
|
|
|
"endpoint": "1.0.0.111/32",
|
|
|
|
"vias": [
|
|
|
|
{"type": "tunnel", "tunnel_id": "unset"},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"expected": {
|
|
|
|
"result": "skipped",
|
|
|
|
"messages": ["IS-IS-SR not configured"],
|
2025-02-05 11:54:06 +01:00
|
|
|
},
|
|
|
|
},
|
2025-03-17 07:33:51 +01:00
|
|
|
]
|