Skip to content

Commit

Permalink
Add test cases for unmanaged nodes and 'none' clones
Browse files Browse the repository at this point in the history
  • Loading branch information
jbemmel committed Dec 17, 2024
1 parent c66b01e commit 624c691
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 6 deletions.
32 changes: 32 additions & 0 deletions tests/integration/initial/05-none-clones.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
message: This scenario tests the virtual deployment of 'none' type devices, occupying IP address
space but skipped when deployed as containers or VMs

plugin: [ node.clone ]

nodes:
switch:
device: frr

host:
device: none
clone.count: 10

host-01:
device: linux

host-10:
device: linux

links:
- switch:
host:
pool: p2p

validate:
ping:
description: IPv4 ping host-01 => host-10
wait: 10
wait_msg: Wait for IPv4 interfaces to become operational
nodes: [ host-01 ]
plugin: ping('host-10')
16 changes: 16 additions & 0 deletions tests/integration/initial/07-unmanaged-nodes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---

provider: clab

nodes:
switch:
device: frr
host1:
device: linux
unmanaged: True
host2:
device: linux

links:
- switch-host1
- switch-host2
9 changes: 3 additions & 6 deletions tests/topology/expected/unmanaged-device.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,18 @@ input:
- package:topology-defaults.yml
links:
- _linkname: links[1]
bridge: ghost_1
interfaces:
- ifindex: 1
ifname: Ethernet1
ipv4: 10.1.0.2/30
node: r1
- ifindex: 1
ifname: Ethernet1
ipv4: 10.1.0.1/30
node: external
linkindex: 1
node_count: 2
node_count: 1
prefix:
ipv4: 10.1.0.0/30
role: external
type: p2p
type: dummy
- _linkname: links[2]
bridge: input_2
gateway:
Expand Down

0 comments on commit 624c691

Please sign in to comment.