From c2f77f46b4fb0c03297c6d728532b219ba34afb1 Mon Sep 17 00:00:00 2001 From: Ruchi Pakhle Date: Tue, 15 Oct 2024 14:38:35 +0530 Subject: [PATCH 1/3] Blueprint for eos_vrf_global model --- models/eos/vrf_global/eos_vrf_global.yaml | 54 +++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 models/eos/vrf_global/eos_vrf_global.yaml diff --git a/models/eos/vrf_global/eos_vrf_global.yaml b/models/eos/vrf_global/eos_vrf_global.yaml new file mode 100644 index 000000000..2c2244a22 --- /dev/null +++ b/models/eos/vrf_global/eos_vrf_global.yaml @@ -0,0 +1,54 @@ +module: ios_vrf_global +short_description: Resource module to configure VRF definitions. +description: This module provides declarative management of VRF definitions on Arista EOS platforms. +version_added: 10.0.0 +author: Ruchi Pakhle (@Ruchip16) +notes: +- Tested against Arista EOS 4.23.0F +- This module works with connection C(network_cli). See the L(EOS Platform Options,eos_platform_options). +options: + config: + description: A dictionary containing device configurations for VRF, including a list of VRF definitions. + options: + type: list + elements: dict + suboptions: + name: + description: Name of the VRF Instance. + type: str + required: true + description: + description: A description for the VRF. + type: str + rd: + description: BGP Route Distinguisher (RD). + type: str + running_config: + description: + - This option is used only with state I(parsed). + - The value of this option should be the output received from the IOS device by + executing the command B(show running-config vrf). + - The state I(parsed) reads the configuration from C(running_config) option and + transforms it into Ansible structured data as per the resource module's argspec + and the value is then returned in the I(parsed) key within the result. + type: str + state: + choices: [parsed, gathered, deleted, merged, replaced, rendered, overridden] + default: merged + description: + - The state the configuration should be left in + - The states I(rendered), I(gathered) and I(parsed) does not perform any change + on the device. + - The state I(rendered) will transform the configuration in C(config) option to + platform specific CLI commands which will be returned in the I(rendered) key + within the result. For state I(rendered) active connection to remote host is + not required. + - The state I(gathered) will fetch the running configuration from device and transform + it into structured data in the format as per the resource module argspec and + the value is returned in the I(gathered) key within the result. + - The state I(parsed) reads the configuration from C(running_config) option and + transforms it into JSON format as per the resource module parameters and the + value is returned in the I(parsed) key within the result. The value of C(running_config) + option should be the same format as the output of command I(show running-config vrf). + connection to remote host is not required. + type: str \ No newline at end of file From a0df8c435572b1c3a0e44bc06075e75d6f900da5 Mon Sep 17 00:00:00 2001 From: Ruchi Pakhle Date: Mon, 21 Oct 2024 14:10:45 +0530 Subject: [PATCH 2/3] changes --- models/eos/vrf_global/eos_vrf_global.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/eos/vrf_global/eos_vrf_global.yaml b/models/eos/vrf_global/eos_vrf_global.yaml index 2c2244a22..85272c3c3 100644 --- a/models/eos/vrf_global/eos_vrf_global.yaml +++ b/models/eos/vrf_global/eos_vrf_global.yaml @@ -1,4 +1,4 @@ -module: ios_vrf_global +module: eos_vrf_global short_description: Resource module to configure VRF definitions. description: This module provides declarative management of VRF definitions on Arista EOS platforms. version_added: 10.0.0 @@ -26,7 +26,7 @@ options: running_config: description: - This option is used only with state I(parsed). - - The value of this option should be the output received from the IOS device by + - The value of this option should be the output received from the EOS device by executing the command B(show running-config vrf). - The state I(parsed) reads the configuration from C(running_config) option and transforms it into Ansible structured data as per the resource module's argspec From e7ec55290ab658b0b538ea81d97cbf37a713a2c1 Mon Sep 17 00:00:00 2001 From: Ruchi Pakhle Date: Thu, 7 Nov 2024 23:36:15 +0530 Subject: [PATCH 3/3] push changes --- models/eos/vrf_global/eos_vrf_global.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/models/eos/vrf_global/eos_vrf_global.yaml b/models/eos/vrf_global/eos_vrf_global.yaml index 85272c3c3..93e0d9300 100644 --- a/models/eos/vrf_global/eos_vrf_global.yaml +++ b/models/eos/vrf_global/eos_vrf_global.yaml @@ -9,7 +9,6 @@ notes: options: config: description: A dictionary containing device configurations for VRF, including a list of VRF definitions. - options: type: list elements: dict suboptions: @@ -33,7 +32,7 @@ options: and the value is then returned in the I(parsed) key within the result. type: str state: - choices: [parsed, gathered, deleted, merged, replaced, rendered, overridden] + choices: [parsed, gathered, deleted, merged, replaced, rendered, overridden, purged] default: merged description: - The state the configuration should be left in