Skip to content

Commit d027e10

Browse files
committed
feat: Add IPv6 Address Generation mode
1 parent c3019bd commit d027e10

File tree

2 files changed

+41
-19
lines changed

2 files changed

+41
-19
lines changed

docs/api/supervisor/endpoints.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2383,25 +2383,36 @@ Update the settings for a network interface.
23832383

23842384
| key | type | optional | description |
23852385
| ------- | ------ | -------- | ---------------------------------------------------------------------- |
2386-
| enabled | bool | True | Enable/Disable an ethernet interface / VLAN got removed with disabled |
2386+
| enabled | bool | True | Enable/Disable an ethernet interface / VLAN got removed with disabled |
23872387
| ipv4 | dict | True | A struct with ipv4 interface settings |
23882388
| ipv6 | dict | True | A struct with ipv6 interface settings |
23892389
| wifi | dict | True | A struct with Wireless connection settings |
23902390

2391-
**ipv4 / ipv6:**
2391+
**ipv4:**
23922392

23932393
| key | type | optional | description |
23942394
| ----------- | ------ | -------- | ------------------------------------------------------------------------------------- |
2395-
| method | string | True | Set IP configuration method can be `auto` for DHCP or Router Advertisements (only IPv6), `static` or `disabled` |
2395+
| method | string | True | Set IP configuration method can be `auto` for DHCP, `static` or `disabled` |
23962396
| address | list | True | The new IP address for the interface in the X.X.X.X/XX format as list |
23972397
| nameservers | list | True | List of DNS servers to use |
23982398
| gateway | string | True | The gateway the interface should use |
23992399

2400+
**ipv6:**
2401+
2402+
| key | type | optional | description |
2403+
| ------------- | ------ | -------- | --------------------------------------------------------------------------------------------------- |
2404+
| method | string | True | Set IP configuration method can be `auto` for DHCP or Router Advertisements, `static` or `disabled` |
2405+
| addr_gen_mode | string | True | Address generation mode can be `eui64` or `stable-privacy` |
2406+
| ip6_privacy | string | True | Privacy extensions options are `disabled`, `enabled-prefer-public` or `enabled` |
2407+
| address | list | True | The new IP address for the interface in the ::/XX format as list |
2408+
| nameservers | list | True | List of DNS servers to use |
2409+
| gateway | string | True | The gateway the interface should use |
2410+
24002411
**wifi:**
24012412

24022413
| key | type | optional | description |
24032414
| ------ | ------ | -------- | ------------------------------------------------------------------------------ |
2404-
| mode | string | True | Set the mode `infrastructure` (default), `mesh`, `adhoc` or `ap` |
2415+
| mode | string | True | Set the mode `infrastructure` (default), `mesh`, `adhoc` or `ap` |
24052416
| auth | string | True | Set the auth mode: `open` (default), `web`, `wpa-psk` |
24062417
| ssid | string | True | Set the SSID for connect into |
24072418
| psk | string | True | The shared key which is used with `web` or `wpa-psk` |
@@ -2418,7 +2429,7 @@ Return a list of available [Access Points](api/supervisor/models.md#access-point
24182429

24192430
| key | description |
24202431
| ------------ | ---------------------------------------------------------------------- |
2421-
| accesspoints | A list of [Access Points](api/supervisor/models.md#access-points) |
2432+
| accesspoints | A list of [Access Points](api/supervisor/models.md#access-points) |
24222433

24232434
**Example response:**
24242435

@@ -2673,8 +2684,8 @@ Move datadisk to a new location, **This will also reboot the device!**
26732684

26742685
**Payload:**
26752686

2676-
| key | type | description |
2677-
| ------- | ------ | ----------------------------------------------------------------- |
2687+
| key | type | description |
2688+
| ------- | ------ | ------------------------------------------------------------------------------- |
26782689
| device | string | ID of the disk device which should be used as the target for the data migration |
26792690

26802691
</ApiEndpoint>

docs/api/supervisor/models.md

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ These models are describing objects that are getting returned from the superviso
100100
| enabled | boolean | Return True if the interface is enabled. |
101101
| connected | boolean | Return True if the interface is connected to the network. |
102102
| primary | boolean | `true` if it's the primary network interface. |
103-
| ipv4 | struct or null | An IP config struct with IPv4 connection details. |
104-
| ipv6 | struct or null | An IP config struct with IPv6 connection details. |
105-
| wifi | struct or null | A Wifi config struct with wireless connection details. |
106-
| vlan | struct or null | A Vlan config struct with details about the vlan. |
103+
| ipv4 | struct or null | An IP config struct with IPv4 connection details. |
104+
| ipv6 | struct or null | An IP config struct with IPv6 connection details. |
105+
| wifi | struct or null | A Wifi config struct with wireless connection details. |
106+
| vlan | struct or null | A Vlan config struct with details about the vlan. |
107107

108-
### IP configuration
108+
### IPv4 configuration
109109

110110
| key | type | description |
111111
| ----------- | ------- | ---------------------------------------------------------------------------- |
@@ -114,6 +114,17 @@ These models are describing objects that are getting returned from the superviso
114114
| gateway | string | The IP address of the gateway. |
115115
| nameservers | list | A list containing the IP addresses of the configured nameservers as strings. |
116116

117+
### IPv6 configuration
118+
119+
| key | type | description |
120+
| ------------- | ------- | -------------------------------------------------------------------------------- |
121+
| method | string | The method used to set the IP can be `static`, `auto` or `disabled`. |
122+
| addr_gen_mode | string | Address generation mode can be `eui64` or `stable-privacy`. |
123+
| ip6_privacy | string | Privacy extensions options are `disabled`, `enabled-prefer-public` or `enabled`. |
124+
| address | list | A list with IP address and the netmask in a ::/XX format. |
125+
| gateway | string | The IP address of the gateway. |
126+
| nameservers | list | A list containing the IP addresses of the configured nameservers as strings. |
127+
117128
### Wifi configuration
118129

119130
| key | type | description |
@@ -171,13 +182,13 @@ These models are describing objects that are getting returned from the superviso
171182

172183
| key | type | description |
173184
| --------- | ------- | --------------------------------------------------------------------- |
174-
| slug | string | A generated slug for the backup |
175-
| date | string | ISO date string representation of the date the backup was created |
176-
| name | string | The name given to the backup |
177-
| type | string | The type of backup (full, partial) |
178-
| protected | boolean | `true` if the backup is password protected |
179-
| content | dictionary | A dictionary describing the content of the backup |
180-
| compressed | boolean | `true` if the backup is saved in a compressed archive |
185+
| slug | string | A generated slug for the backup |
186+
| date | string | ISO date string representation of the date the backup was created |
187+
| name | string | The name given to the backup |
188+
| type | string | The type of backup (full, partial) |
189+
| protected | boolean | `true` if the backup is password protected |
190+
| content | dictionary | A dictionary describing the content of the backup |
191+
| compressed | boolean | `true` if the backup is saved in a compressed archive |
181192

182193
### Backup -> content
183194

0 commit comments

Comments
 (0)