Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 1467e4f

Browse files
committed
UserInterface: add mtu
Signed-off-by: Hui Zhu <teawater@hyper.sh>
1 parent d493b1b commit 1467e4f

File tree

4 files changed

+349
-337
lines changed

4 files changed

+349
-337
lines changed

daemon/pod/networks.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func (inf *Interface) prepare() error {
5151
Ip: setting.IPAddress,
5252
Mac: setting.Mac,
5353
Gw: setting.Gateway,
54+
Mtu: inf.spec.Mtu,
5455
TapName: inf.spec.Ifname,
5556
}
5657
return nil
@@ -62,6 +63,7 @@ func (inf *Interface) prepare() error {
6263
Ip: inf.spec.Ip,
6364
Mac: inf.spec.Mac,
6465
Gw: inf.spec.Gateway,
66+
Mtu: inf.spec.Mtu,
6567
TapName: inf.spec.Ifname,
6668
}
6769

types/persist.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)