diff --git a/docs/modules/metal_reserved_ip_block.md b/docs/modules/metal_reserved_ip_block.md index 79ac5e9..fd14123 100644 --- a/docs/modules/metal_reserved_ip_block.md +++ b/docs/modules/metal_reserved_ip_block.md @@ -71,22 +71,22 @@ When a user provisions first device in a facility, Equinix Metal API automatical ```json { "address_family": 4, - "changed": true, "customdata": {}, "details": "", + "gateway": "192.168.200.1", "id": "6d94f567-6cf5-4536-8216-7dc96e1585dd", "management": false, "metro": "sv", - "netmask": "255.255.255.255", - "network": "145.40.67.3", + "netmask": "255.255.255.128", + "network": "192.168.200.0", "project_id": "fd554070-70b6-420d-b3f8-7ed8438862d5", - "public": true, - "quantity": 1, + "public": false, + "quantity": 128, "tags": [ "t1", "t2" ], - "type": "public_ipv4" + "type": "vrf" } ``` diff --git a/plugins/module_utils/metal/metal_api.py b/plugins/module_utils/metal/metal_api.py index 615dbcf..acef0f0 100644 --- a/plugins/module_utils/metal/metal_api.py +++ b/plugins/module_utils/metal/metal_api.py @@ -138,6 +138,7 @@ def extract_ids_from_projects_hrefs(resource: dict): 'metro': find_metro, 'netmask': 'netmask', 'network': 'network', + 'gateway': 'gateway', 'project_id': 'project.id', 'public': 'public', 'quantity': cidr_to_quantity('cidr'), diff --git a/plugins/modules/metal_reserved_ip_block.py b/plugins/modules/metal_reserved_ip_block.py index b59b46d..1854232 100644 --- a/plugins/modules/metal_reserved_ip_block.py +++ b/plugins/modules/metal_reserved_ip_block.py @@ -162,24 +162,24 @@ return_values = [ - { +{ "address_family": 4, - "changed": True, "customdata": {}, "details": "", "id": "6d94f567-6cf5-4536-8216-7dc96e1585dd", + "gateway": "192.168.200.1", "management": False, "metro": "sv", - "netmask": "255.255.255.255", - "network": "145.40.67.3", + "netmask": "255.255.255.128", + "network": "192.168.200.0", "project_id": "fd554070-70b6-420d-b3f8-7ed8438862d5", - "public": True, - "quantity": 1, + "public": False, + "quantity": 128, "tags": [ "t1", "t2" ], - "type": "public_ipv4" + "type": "vrf" } ]