diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index 5ba3e26d..b861b5b2 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -298,6 +298,31 @@ def join_path(path): 'ranges': KeyInfo(), }, ), + ('ip', 'route'): APIData( + fully_understood=True, + fields={ + 'check-gateway': KeyInfo(can_disable=True), + 'comment': KeyInfo(can_disable=True, remove_value=''), + 'disabled': KeyInfo(default=False), + 'distance': KeyInfo(), + 'dst-address': KeyInfo(), + 'gateway': KeyInfo(required=True), + 'route-tag': KeyInfo(can_disable=True), + 'routing-mark': KeyInfo(can_disable=True), + 'scope': KeyInfo(), + 'target-scope': KeyInfo(), + }, + ), + ('ip', 'route', 'vrf'): APIData( + fully_understood=True, + primary_keys=('routing-mark', ), + fields={ + 'comment': KeyInfo(can_disable=True, remove_value=''), + 'disabled': KeyInfo(default=False), + 'interfaces': KeyInfo(), + 'routing-mark': KeyInfo(), + }, + ), ('ip', 'dhcp-server'): APIData( fully_understood=True, primary_keys=('name', ), diff --git a/plugins/modules/api_info.py b/plugins/modules/api_info.py index b7db4659..10d53d35 100644 --- a/plugins/modules/api_info.py +++ b/plugins/modules/api_info.py @@ -86,6 +86,8 @@ - ip neighbor discovery-settings - ip pool - ip proxy + - ip route + - ip route vrf - ip service - ip settings - ip smb diff --git a/plugins/modules/api_modify.py b/plugins/modules/api_modify.py index 5b3fc15a..f0adde25 100644 --- a/plugins/modules/api_modify.py +++ b/plugins/modules/api_modify.py @@ -91,6 +91,8 @@ - ip neighbor discovery-settings - ip pool - ip proxy + - ip route + - ip route vrf - ip service - ip settings - ip smb