|
| 1 | +# NX-OS ISIS Integration Test |
| 2 | +# |
| 3 | +# Tests IS-IS routing protocol configuration with interface references. |
| 4 | +# ISIS requires at least one interface to participate in the IS-IS domain. |
| 5 | +# |
| 6 | +# Resource dependency chain: |
| 7 | +# ethernet1 -> Physical Interface (spec.name: Ethernet1/1 -> eth1/1) |
| 8 | +# fabric-isis -> ISIS instance referencing ethernet1 |
| 9 | +# |
| 10 | +# K8s metadata.name (fabric-isis) differs from spec.instance (FABRIC) to verify |
| 11 | +# the provider uses spec.instance for gNMI paths. |
| 12 | +# |
| 13 | +# Expected gNMI state mapping: |
| 14 | +# |
| 15 | +# fm-items/isis-items: ISIS exists -> Feature "isis" enabled |
| 16 | +# |
| 17 | +# intf-items/phys-items/PhysIf-list: Physical interface |
| 18 | +# - id: eth1/1 spec.name normalized (Ethernet1/1 -> eth1/1) |
| 19 | +# - layer: Layer3 L3 interface (has IPv4 config) |
| 20 | +# - adminSt: up spec.adminState=Up |
| 21 | +# |
| 22 | +# ipv4-items: L3 interface with IPv4 address |
| 23 | +# - addr: 10.0.1.1/30 ipv4.addresses -> IP address |
| 24 | +# |
| 25 | +# isis-items/inst-items/Inst-list: ISIS instance configuration |
| 26 | +# - name: FABRIC spec.instance -> IS-IS instance name |
| 27 | +# - adminSt: enabled spec.adminState=Up -> enabled |
| 28 | +# dom-items/Dom-list: IS-IS domain (default VRF) |
| 29 | +# - net: 49.0001... spec.networkEntityTitle -> NET |
| 30 | +# - isType: l2 spec.type=Level2 -> level type |
| 31 | +# - af-items/DomAf-list: spec.addressFamilies |
| 32 | +# - type: v4 IPv4Unicast -> v4 |
| 33 | +# - if-items/If-list: spec.interfaceRefs -> participating interfaces |
| 34 | +# - id: eth1/1 interface reference |
| 35 | +# - v4enable: true IPv4 enabled on interface |
| 36 | +# - networkTypeP2P: on point-to-point network type |
| 37 | + |
| 38 | +-- interface/ethernet1 -- |
| 39 | +apiVersion: networking.metal.ironcore.dev/v1alpha1 |
| 40 | +kind: Interface |
| 41 | +metadata: |
| 42 | + name: ethernet1 |
| 43 | + namespace: default |
| 44 | + labels: |
| 45 | + networking.metal.ironcore.dev/device: device |
| 46 | +spec: |
| 47 | + deviceRef: |
| 48 | + name: device |
| 49 | + name: Ethernet1/1 |
| 50 | + adminState: Up |
| 51 | + type: Physical |
| 52 | + ipv4: |
| 53 | + addresses: |
| 54 | + - 10.0.1.1/30 |
| 55 | + |
| 56 | +-- isis/fabric-isis -- |
| 57 | +apiVersion: networking.metal.ironcore.dev/v1alpha1 |
| 58 | +kind: ISIS |
| 59 | +metadata: |
| 60 | + name: fabric-isis |
| 61 | + namespace: default |
| 62 | + labels: |
| 63 | + networking.metal.ironcore.dev/device: device |
| 64 | +spec: |
| 65 | + deviceRef: |
| 66 | + name: device |
| 67 | + adminState: Up |
| 68 | + instance: FABRIC |
| 69 | + networkEntityTitle: "49.0001.0000.0000.0001.00" |
| 70 | + type: Level2 |
| 71 | + addressFamilies: |
| 72 | + - IPv4Unicast |
| 73 | + interfaceRefs: |
| 74 | + - name: ethernet1 |
| 75 | + |
| 76 | +-- state -- |
| 77 | +{ |
| 78 | + "System": { |
| 79 | + "fm-items": { |
| 80 | + "isis-items": { |
| 81 | + "adminSt": "enabled" |
| 82 | + } |
| 83 | + }, |
| 84 | + "intf-items": { |
| 85 | + "phys-items": { |
| 86 | + "PhysIf-list": [ |
| 87 | + { |
| 88 | + "FECMode": "auto", |
| 89 | + "accessVlan": "unknown", |
| 90 | + "adminSt": "up", |
| 91 | + "id": "eth1/1", |
| 92 | + "layer": "Layer3", |
| 93 | + "medium": "broadcast", |
| 94 | + "mode": "access", |
| 95 | + "mtu": 1500, |
| 96 | + "nativeVlan": "unknown", |
| 97 | + "physExtd-items": { |
| 98 | + "bufferBoost": "enable" |
| 99 | + }, |
| 100 | + "rtvrfMbr-items": { |
| 101 | + "tDn": "/System/inst-items/Inst-list[name='default']" |
| 102 | + }, |
| 103 | + "trunkVlans": "1-4094", |
| 104 | + "userCfgdFlags": "admin_layer,admin_state" |
| 105 | + } |
| 106 | + ] |
| 107 | + } |
| 108 | + }, |
| 109 | + "ipv4-items": { |
| 110 | + "inst-items": { |
| 111 | + "dom-items": { |
| 112 | + "Dom-list": [ |
| 113 | + { |
| 114 | + "if-items": { |
| 115 | + "If-list": [ |
| 116 | + { |
| 117 | + "addr-items": { |
| 118 | + "Addr-list": [ |
| 119 | + { |
| 120 | + "addr": "10.0.1.1/30", |
| 121 | + "pref": 0, |
| 122 | + "tag": 0, |
| 123 | + "type": "primary" |
| 124 | + } |
| 125 | + ] |
| 126 | + }, |
| 127 | + "id": "eth1/1" |
| 128 | + } |
| 129 | + ] |
| 130 | + }, |
| 131 | + "name": "default" |
| 132 | + } |
| 133 | + ] |
| 134 | + } |
| 135 | + } |
| 136 | + }, |
| 137 | + "isis-items": { |
| 138 | + "inst-items": { |
| 139 | + "Inst-list": [ |
| 140 | + { |
| 141 | + "adminSt": "enabled", |
| 142 | + "dom-items": { |
| 143 | + "Dom-list": [ |
| 144 | + { |
| 145 | + "af-items": { |
| 146 | + "DomAf-list": [ |
| 147 | + { |
| 148 | + "type": "v4" |
| 149 | + } |
| 150 | + ] |
| 151 | + }, |
| 152 | + "if-items": { |
| 153 | + "If-list": [ |
| 154 | + { |
| 155 | + "id": "eth1/1", |
| 156 | + "networkTypeP2P": "on", |
| 157 | + "v4Bfd": "inheritVrf", |
| 158 | + "v4enable": true, |
| 159 | + "v6Bfd": "", |
| 160 | + "v6enable": false |
| 161 | + } |
| 162 | + ] |
| 163 | + }, |
| 164 | + "isType": "l2", |
| 165 | + "name": "default", |
| 166 | + "net": "49.0001.0000.0000.0001.00", |
| 167 | + "passiveDflt": "l2" |
| 168 | + } |
| 169 | + ] |
| 170 | + }, |
| 171 | + "name": "FABRIC" |
| 172 | + } |
| 173 | + ] |
| 174 | + } |
| 175 | + } |
| 176 | + } |
| 177 | +} |
0 commit comments