From fd5581276a47c7fa58599870035f662f07b2a86c Mon Sep 17 00:00:00 2001 From: Igor <13848605+vint2k@users.noreply.github.com> Date: Fri, 12 Apr 2024 16:34:07 +0400 Subject: [PATCH] Add support for '/routing bgp network' path --- plugins/module_utils/_api_data.py | 12 ++++++++++++ plugins/modules/api_info.py | 1 + plugins/modules/api_modify.py | 1 + 3 files changed, 14 insertions(+) diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index d7bfd4ec..5f2b5a9f 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -4483,6 +4483,18 @@ def join_path(path): }, ), ), + ('routing', 'bgp', 'network'): APIData( + unversioned=VersionedAPIData( + primary_keys=('network',), + fully_understood=True, + fields={ + 'comment': KeyInfo(can_disable=True, remove_value=''), + 'disabled': KeyInfo(default=False), + 'network': KeyInfo(required=True), + 'synchronize': KeyInfo(default=True), + }, + ), + ), ('routing', 'bgp', 'template'): APIData( unversioned=VersionedAPIData( primary_keys=('name', ), diff --git a/plugins/modules/api_info.py b/plugins/modules/api_info.py index 0cba8b13..067a4c5a 100644 --- a/plugins/modules/api_info.py +++ b/plugins/modules/api_info.py @@ -185,6 +185,7 @@ - radius incoming - routing bgp connection - routing bgp peer + - routing bgp network - routing bgp instance - routing bgp template - routing filter rule diff --git a/plugins/modules/api_modify.py b/plugins/modules/api_modify.py index 1b9e5bc0..5ff2acb5 100644 --- a/plugins/modules/api_modify.py +++ b/plugins/modules/api_modify.py @@ -194,6 +194,7 @@ - radius incoming - routing bgp connection - routing bgp peer + - routing bgp network - routing bgp instance - routing bgp template - routing filter rule