Skip to content

Commit

Permalink
fix: expose gateway address for IP reservations (#239)
Browse files Browse the repository at this point in the history
Fixes #238
  • Loading branch information
ctreatma authored Oct 17, 2024
1 parent 4c83264 commit 4538829
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
12 changes: 6 additions & 6 deletions docs/modules/metal_reserved_ip_block.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
```

Expand Down
1 change: 1 addition & 0 deletions plugins/module_utils/metal/metal_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
14 changes: 7 additions & 7 deletions plugins/modules/metal_reserved_ip_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]

Expand Down

0 comments on commit 4538829

Please sign in to comment.