diff options
author | Maros Ondrejicka <maros.ondrejicka@pantheon.tech> | 2022-12-20 15:10:50 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2023-01-11 19:21:49 +0000 |
commit | f719adfa8970d2e530b0303889d2bbee7cf859db (patch) | |
tree | 26959a4c2306c0ff61e3dfd37f4c5354758ef0ac /extras/hs-test/topo-containers/2peerVeth.yaml | |
parent | c04d8c41d151c82559ddcb90aef3f6dea994b4e9 (diff) |
hs-test: use anchors in yaml config files
Volumes can be referenced with anchors to reduce text duplication
and to explicitly show which containers share a volume.
Type: test
Signed-off-by: Maros Ondrejicka <maros.ondrejicka@pantheon.tech>
Change-Id: Id408a78262573b3faf2257c32bfa569eca2e2049
Diffstat (limited to 'extras/hs-test/topo-containers/2peerVeth.yaml')
-rw-r--r-- | extras/hs-test/topo-containers/2peerVeth.yaml | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/extras/hs-test/topo-containers/2peerVeth.yaml b/extras/hs-test/topo-containers/2peerVeth.yaml index 8262232eff8..246e5cac1bd 100644 --- a/extras/hs-test/topo-containers/2peerVeth.yaml +++ b/extras/hs-test/topo-containers/2peerVeth.yaml @@ -1,31 +1,33 @@ --- volumes: - - server-share - - client-share + - volume: &server-vol + host-dir: server-share + - volume: &client-vol + host-dir: client-share containers: - name: "server-vpp" volumes: - - host-dir: "server-share" + - <<: *server-vol container-dir: "/tmp/server-share" is-default-work-dir: true - host-dir: "/tmp/server" container-dir: "/tmp/server" - name: "client-vpp" volumes: - - host-dir: "client-share" + - <<: *client-vol container-dir: "/tmp/client-share" is-default-work-dir: true - host-dir: "/tmp/client" container-dir: "/tmp/client" - name: "server-application" volumes: - - host-dir: "server-share" + - <<: *server-vol container-dir: "/tmp/server-share" is-default-work-dir: true - name: "client-application" volumes: - - host-dir: "client-share" + - <<: *client-vol container-dir: "/tmp/client-share" is-default-work-dir: true |