Examples
cisco-switch
An office LAN split into two VLANs, switched by a real Cisco IOS switch (IOL-L2) instead of Isoloom's Linux one. The switch lists no networks: Isoloom gives it an access port per VLAN (Ethernet0/1 in VLAN 10, Ethernet0/2 in VLAN 20) and a trunk port to the file server, which is on both VLANs (Ethernet0/3, VLANs 10 and 20 tagged), declares the VLANs and sets each port's mode; its own configuration is added after. Staff and guests reach the file server through IOS. IOL-L2 comes from Cisco Modeling Labs and isn't Isoloom's to ship: build the image with vrnetlab (cisco/iol) from a release you're licensed for, then set its tag below.
The example's folder, with the files its spec names: examples/cisco-switch.
version: 1
name: cisco-switch
networks:
office:
cidr: 10.92.0.0/16
internet: false
switch: sw1
vlans:
10: { cidr: 10.92.10.0/24 }
20: { cidr: 10.92.20.0/24 }
machines:
sw1:
app:
image: "vrnetlab/cisco_iol:L2-17.12.01"
appliance: cisco-iol-l2
config: configs/sw1.cfg
files:
networks: { office.vlan10: 10, office.vlan20: 10 }
ports: { web: { port: 80, protocol: http } }
app: { image: "nginx:1.27-alpine" }
staff:
os: alpine # its OS alone: Alpine's own image, kept running
networks: { office.vlan10: 20 }
guest:
os: alpine
networks: { office.vlan20: 20 }
checks:
- name: staff reach the file server through the switch (VLAN 10, tagged on its trunk)
from: staff
http: http://10.92.10.10/
expect: 200
wait: 180
- name: guests too, on VLAN 20
from: guest
http: http://10.92.20.10/
expect: 200
wait: 180
Targets
docker, hosted, docker-vm, cloud-docker. See targets for what each means.
Checks
The spec's own:
- staff reach the file server through the switch (VLAN 10, tagged on its trunk) (
http) - guests too, on VLAN 20 (
http)
Plus the checks Isoloom derives from the machines' ports and the reach rules. See checks.