From a26bc5dca4d9d30e4406b9c5991267ebaa197ea9 Mon Sep 17 00:00:00 2001 From: Luca Prete Date: Mon, 3 Apr 2023 14:12:20 +0200 Subject: [PATCH] Add sample vtysh file to remove warnings --- .../simple-nva/files/frr/vtysh.conf | 16 ++++++++++++++++ .../cloud-config-container/simple-nva/main.tf | 6 ++++++ 2 files changed, 22 insertions(+) create mode 100644 modules/cloud-config-container/simple-nva/files/frr/vtysh.conf diff --git a/modules/cloud-config-container/simple-nva/files/frr/vtysh.conf b/modules/cloud-config-container/simple-nva/files/frr/vtysh.conf new file mode 100644 index 0000000000..48e9580048 --- /dev/null +++ b/modules/cloud-config-container/simple-nva/files/frr/vtysh.conf @@ -0,0 +1,16 @@ +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# This is a sample file used to remove warnings +# when users open the vtysh console. diff --git a/modules/cloud-config-container/simple-nva/main.tf b/modules/cloud-config-container/simple-nva/main.tf index 3094dc9f3a..b5ed8997d6 100644 --- a/modules/cloud-config-container/simple-nva/main.tf +++ b/modules/cloud-config-container/simple-nva/main.tf @@ -46,6 +46,12 @@ locals { owner = "root" permissions = "0744" } + "/etc/frr/vtysh.conf" = { + # content can either be the path to the config file or the config string + content = file("${path.module}/files/frr/daemons") + owner = "root" + permissions = "0644" + } "/etc/systemd/system/frr.service" = { content = file("${path.module}/files/frr/frr.service") owner = "root"