/
clab.yml
41 lines (40 loc) · 1.12 KB
/
clab.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# CLAB settings
#
description: containerlab with Docker
config: clab.yml
node_config_attributes: [ type, cmd, env, ports ]
template: clab.j2
# Preserve env to allow user to configure PATH
start: sudo -E containerlab deploy -t clab.yml
stop: sudo -E containerlab destroy --cleanup -t clab.yml
act_probe: "docker ps"
act_title: "Running containers"
probe:
- cmd: "containerlab version"
err: "Containerlab is not installed"
- cmd: [ bash, '-c', "[[ `containerlab version|awk '/version/ {print $2}'` > '0.42' ]] && echo OK" ]
err: "Containerlab version is too old, please upgrade to 0.43 or later"
cleanup: [ clab.yml,clab_files ]
bridge_type: bridge # Use 'ovs-bridge' to create Openvswitch bridges
runtime: docker # Default runtime, see Containerlab documentation
attributes:
node:
type: dict
_keys: # Make keys explicit to get around the 'type' attribute
binds:
kind: str
config_templates:
type: str
cmd: str
env:
ports: list
image: str
startup-config: str
srl-agents:
license: str
runtime: str
interface:
name: str
link:
uplink: str