Skip to content

Commit

Permalink
New global option interface_name in containers.conf
Browse files Browse the repository at this point in the history
Add a new containers.conf attribute to define how to set interface name inside containers.

Signed-off-by: Vikas Goel <vikas.goel@gmail.com>
  • Loading branch information
vikas-goel committed Jan 20, 2024
1 parent b8b17c6 commit 7270924
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ type ContainersConfig struct {
// Deprecated: Do not use this field directly use conf.FindInitBinary() instead.
InitPath string `toml:"init_path,omitempty"`

// InterfaceName tells container runtimes whether how to set interface names
// inside the container.
// InterfaceName tells container runtimes how to set interface names
// inside containers.
// The only valid value at the moment is "parent" that indicates the interface
// name should be set to the parent interface name of the respective bridge.
InterfaceName string `toml:"interface_name,omitempty"`
Expand Down
4 changes: 4 additions & 0 deletions pkg/config/config_remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ func (c *ContainersConfig) validateDevices() error {
return nil
}

func (c *ContainersConfig) validateInterfaceName() error {
return nil
}

func (c *ContainersConfig) validateUlimits() error {
return nil
}
Expand Down

0 comments on commit 7270924

Please sign in to comment.