Skip to content

Commit

Permalink
lxd/metadata: update metadata configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Mougard <[email protected]>
  • Loading branch information
gabrielmougard committed Jan 9, 2024
1 parent 56bd828 commit eedfede
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/config_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,14 @@ The network device MAC address is used when no `hwaddr` property is set on the d
Possible values are `true` or `false`.
```

```{config:option} volatile.<name>.last_state.created_path instance-volatile
:shortdesc: "Path of the directory created from mounting a `disk` device"
:type: "string"
If mounting a host directory through a `disk` device creates the target directory, this option contains the path of this newly created target directory.
For example, if the target directory is `/opt` and `/opt` already exists in the instance, this key is not set.
However, if the target directory is `/opt/foo` and `/opt/foo` doesn't exist in the instance, this key is set to `/opt/foo`.
```

```{config:option} volatile.<name>.last_state.hwaddr instance-volatile
:shortdesc: "Network device original MAC"
:type: "string"
Expand Down
7 changes: 7 additions & 0 deletions lxd/metadata/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,13 @@
"type": "string"
}
},
{
"volatile.\u003cname\u003e.last_state.created_path": {
"longdesc": "If mounting a host directory through a `disk` device creates the target directory, this option contains the path of this newly created target directory.\nFor example, if the target directory is `/opt` and `/opt` already exists in the instance, this key is not set.\nHowever, if the target directory is `/opt/foo` and `/opt/foo` doesn't exist in the instance, this key is set to `/opt/foo`.",
"shortdesc": "Path of the directory created from mounting a `disk` device",
"type": "string"
}
},
{
"volatile.\u003cname\u003e.last_state.hwaddr": {
"longdesc": "The original MAC that was used when moving a physical device into an instance.",
Expand Down

0 comments on commit eedfede

Please sign in to comment.