Skip to content

Commit

Permalink
netavark: add bclim option for macvlan
Browse files Browse the repository at this point in the history
see containers/netavark#698

Signed-off-by: Paul Holzinger <[email protected]>
  • Loading branch information
Luap99 committed May 24, 2023
1 parent 53220b2 commit 11e4991
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libnetwork/netavark/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,11 @@ func createIpvlanOrMacvlan(network *types.Network) error {
if err != nil {
return err
}
case types.BclimOption:
_, err := strconv.ParseInt(value, 10, 32)
if err != nil {
return fmt.Errorf("failed to parse %q option: %w", key, err)
}
default:
return fmt.Errorf("unsupported %s network option %s", driver, key)
}
Expand Down
1 change: 1 addition & 0 deletions libnetwork/types/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const (
ModeOption = "mode"
IsolateOption = "isolate"
MetricOption = "metric"
BclimOption = "bclim"
)

type NetworkBackend string
Expand Down

0 comments on commit 11e4991

Please sign in to comment.