Skip to content

Commit

Permalink
adding vpc fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jriddle-linode committed Nov 3, 2023
1 parent d98a9b8 commit 76479b0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
7 changes: 6 additions & 1 deletion docs/modules/ip_info.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ Get info about a Linode IP.
"rdns": "test.example.org",
"region": "us-east",
"subnet_mask": "255.255.255.0",
"type": "ipv4"
"type": "ipv4",
"vpc_nat_1_1": {
"vpc_id": 242,
"subnet_id": 194,
"address": "139.144.244.36",
}
}
```
- See the [Linode API response documentation](https://www.linode.com/docs/api/networking/#ip-address-view__responses) for a list of returned fields
Expand Down
7 changes: 6 additions & 1 deletion docs/modules/ip_rdns.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ Manage a Linode IP address's rDNS.
"rdns": "test.example.org",
"region": "us-east",
"subnet_mask": "255.255.255.0",
"type": "ipv4"
"type": "ipv4",
"vpc_nat_1_1": {
"vpc_id": 242,
"subnet_id": 194,
"address": "139.144.244.36",
}
}
```
- See the [Linode API response documentation](https://www.linode.com/docs/api/profile/#ip-address-rdns-update) for a list of returned fields
Expand Down
7 changes: 6 additions & 1 deletion plugins/module_utils/doc_fragments/ip_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@
"rdns": "test.example.org",
"region": "us-east",
"subnet_mask": "255.255.255.0",
"type": "ipv4"
"type": "ipv4",
"vpc_nat_1_1": {
"vpc_id": 242,
"subnet_id": 194,
"address": "139.144.244.36",
}
}''']
1 change: 1 addition & 0 deletions tests/integration/targets/ip_info/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
- assert:
that:
- ip_info.ip.address == instance_create.instance.ipv4[0]
- ip_info.ip.vpc_nat_1_1

always:
- ignore_errors: true
Expand Down

0 comments on commit 76479b0

Please sign in to comment.