diff options
author | Anders F Björklund <anders.f.bjorklund@gmail.com> | 2020-11-26 17:38:38 +0100 |
---|---|---|
committer | Anders F Björklund <anders.f.bjorklund@gmail.com> | 2020-12-01 22:33:16 +0100 |
commit | 7f1be76b5c388efe34cb658fb8eebb2bcec2a004 (patch) | |
tree | bdee234db45a815650b2f5ef8d2d849b1e23dca5 /libpod/network/netconflist.go | |
parent | b1b35707aae57d299933f029eb0adc0a9000f97f (diff) | |
download | podman-7f1be76b5c388efe34cb658fb8eebb2bcec2a004.tar.gz podman-7f1be76b5c388efe34cb658fb8eebb2bcec2a004.tar.bz2 podman-7f1be76b5c388efe34cb658fb8eebb2bcec2a004.zip |
Add podman network create option for bridge vlan
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Diffstat (limited to 'libpod/network/netconflist.go')
-rw-r--r-- | libpod/network/netconflist.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libpod/network/netconflist.go b/libpod/network/netconflist.go index 8cbad39cb..a5fec5e80 100644 --- a/libpod/network/netconflist.go +++ b/libpod/network/netconflist.go @@ -41,13 +41,14 @@ func NewNcList(name, version string, labels NcLabels) NcList { } // NewHostLocalBridge creates a new LocalBridge for host-local -func NewHostLocalBridge(name string, isGateWay, isDefaultGW, ipMasq bool, mtu int, ipamConf IPAMHostLocalConf) *HostLocalBridge { +func NewHostLocalBridge(name string, isGateWay, isDefaultGW, ipMasq bool, mtu int, vlan int, ipamConf IPAMHostLocalConf) *HostLocalBridge { hostLocalBridge := HostLocalBridge{ PluginType: "bridge", BrName: name, IPMasq: ipMasq, MTU: mtu, HairpinMode: true, + Vlan: vlan, IPAM: ipamConf, } if isGateWay { |