Skip to content

Commit

Permalink
replace netdevices with netDevices
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Ojea <[email protected]>
  • Loading branch information
aojea committed Nov 12, 2024
1 parent dcb9f52 commit 6a8be5d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions config-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ Network devices have their own network namespace and a set of operations distinc

This schema focuses solely on moving existing network devices identified by name into the container namespace. It does not cover the complexities of network device creation or network configuration, such as IP address assignment, routing, and DNS setup.

**`netdevices`** (object, OPTIONAL) set of network devices that MUST be available in the container. The runtime is responsible for providing these devices; the underlying mechanism is implementation-defined.
**`netDevices`** (object, OPTIONAL) set of network devices that MUST be available in the container. The runtime is responsible for providing these devices; the underlying mechanism is implementation-defined.

The name of the network device is the entry key.
Entry values are objects with the following properties:
Expand All @@ -213,7 +213,7 @@ Entry values are objects with the following properties:

```json

"netdevices": [
"netDevices": [
{
"eth0" : {
"name": "container_eth0"
Expand All @@ -227,7 +227,7 @@ This configuration will move the device named "eth0" from the host into the cont
#### Moving a device with a specific IP address and MTU inside the container:

```json
"netdevices": [
"netDevices": [
{
"ens4": {
"address": "10.0.0.10",
Expand Down
2 changes: 1 addition & 1 deletion schema/config-linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"$ref": "defs-linux.json#/definitions/Device"
}
},
"netdevices": {
"netDevices": {
"type": "object",
"additionalProperties": {
"$ref": "defs-linux.json#/definitions/NetDevice"
Expand Down
2 changes: 1 addition & 1 deletion schema/test/config/bad/linux-netdevice.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"path": "rootfs"
},
"linux": {
"netdevices": {
"netDevices": {
"eth0": {
"name": "container_eth0",
"mtu": "not_an_int"
Expand Down
2 changes: 1 addition & 1 deletion schema/test/config/good/linux-netdevice.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"path": "rootfs"
},
"linux": {
"netdevices": {
"netDevices": {
"eth0": {
"name": "container_eth0"
},
Expand Down
2 changes: 1 addition & 1 deletion specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ type Linux struct {
// Devices are a list of device nodes that are created for the container
Devices []LinuxDevice `json:"devices,omitempty"`
// NetDevices are key-value pairs, keyed by network device name, moved to the container's network namespace.
NetDevices map[string]LinuxNetDevice `json:"netdevices,omitempty"`
NetDevices map[string]LinuxNetDevice `json:"netDevices,omitempty"`
// Seccomp specifies the seccomp security settings for the container.
Seccomp *LinuxSeccomp `json:"seccomp,omitempty"`
// RootfsPropagation is the rootfs mount propagation mode for the container.
Expand Down

0 comments on commit 6a8be5d

Please sign in to comment.