Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[resource/host] Add semantic convention for IP addresses of a host #203

Merged
merged 15 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/resource/host.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
| `host.image.name` | string | Name of the VM image or OS install the host was instantiated from. | `infra-ami-eks-worker-node-7d4ec78312`; `CentOS-8-x86_64-1905` | Recommended |
| `host.image.id` | string | VM image ID or host OS image ID. For Cloud, this value is from the provider. | `ami-07b06b442921831e5` | Recommended |
| `host.image.version` | string | The version string of the VM image or host OS as defined in [Version Attributes](README.md#version-attributes). | `0.1` | Recommended |
| `host.ipv4.addresses` | string[] | Available IPv4 addresses of the host, excluding loopback interfaces. [1] | `[['192.168.1.140']]` | Opt-In |
| `host.ipv6.addresses` | string[] | Available IPv6 addresses of the host, excluding loopback interfaces. [2] | `[['fe80::abc2:4a28:737a:609e', 'fe80::849e:eaff:fe31:3c90']]` | Opt-In |

**[1]:** Addresses MUST be specified in dotted-quad notation.
mx-psi marked this conversation as resolved.
Show resolved Hide resolved

**[2]:** Addresses MUST be specified in the [RFC 5952](https://www.rfc-editor.org/rfc/rfc5952.html) format.

`host.arch` has the following list of well-known values. If one of them applies, then the respective value MUST be used, otherwise a custom value MAY be used.

Expand Down
16 changes: 16 additions & 0 deletions model/resource/host.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,19 @@
The version string of the VM image or host OS as defined in
[Version Attributes](README.md#version-attributes).
examples: ['0.1']
- id: ipv4.addresses
type: string[]
requirement_level: opt_in
brief: >
Available IPv4 addresses of the host, excluding loopback interfaces.
note: >
Addresses MUST be specified in dotted-quad notation.
examples: [["192.168.1.140"]]
- id: ipv6.addresses
type: string[]
requirement_level: opt_in
brief: >
Available IPv6 addresses of the host, excluding loopback interfaces.
note: >

Check failure on line 86 in model/resource/host.yaml

View workflow job for this annotation

GitHub Actions / yamllint

[trailing-spaces] trailing spaces
Addresses MUST be specified in the [RFC 5952](https://www.rfc-editor.org/rfc/rfc5952.html) format.
examples: [["fe80::abc2:4a28:737a:609e", "fe80::849e:eaff:fe31:3c90"]]
Loading