summaryrefslogtreecommitdiffstats
path: root/tests/topotests/kinds.yaml
blob: 5f4b61d4b7a506580d56fdc256267d13ac9064f0 (plain)
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
version: 1
kinds:
  - name: frr
    cmd: |
      chown frr:frr -R /var/run/frr
      chown frr:frr -R /var/log/frr
      /usr/lib/frr/frrinit.sh start
      tail -F /var/log/frr/frr.log
    cleanup-cmd: |
      /usr/lib/frr/frrinit.sh stop
    volumes:
      - "./%NAME%:/etc/frr"
      - "%RUNDIR%/var.log.frr:/var/log/frr"
      - "%RUNDIR%/var.run.frr:/var/run/frr"
      - "%RUNDIR%/var.lib.frr:/var/lib/frr"
    cap-add:
      - SYS_ADMIN
      - AUDIT_WRITE
    merge: ["volumes"]
cli:
  commands:
    - name: ""
      exec: "vtysh -c '{}'"
      format: "[ROUTER ...] COMMAND"
      help: "execute vtysh COMMAND on the router[s]"
      kinds: ["frr"]
    - name: "vtysh"
      exec: "/usr/bin/vtysh"
      format: "vtysh ROUTER [ROUTER ...]"
      new-window: true
      kinds: ["frr"]