Skip to content

Commit

Permalink
Add note about passing mtu by dhcp to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jellonek committed Jan 10, 2018
1 parent 465796d commit 2ad776c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/networking.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,6 @@ In case if standard deploy/virtlet-ds.yaml is used, this can be done by settings

**NOTE:** Virtlet doesn't support `hostNetwork` pod setting because it
cannot be implemented for VM in a meaningful way.

**NOTE:** At the moment Virtlet can only pass `MTU` values configured for
the network interfaces by CNI plugins to VMs via its built-in `DHCP` server.
2 changes: 1 addition & 1 deletion tests/network/dhcp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type dhcpTestCase struct {
}

func TestDhcpServer(t *testing.T) {
clientMac, _ := net.ParseMAC(clientMacAddress)
clientMac, _ := net.ParseMAC(clientMacAddrs[0])
testCases := []*dhcpTestCase{
{
csn: nettools.ContainerSideNetwork{
Expand Down
2 changes: 1 addition & 1 deletion tests/network/vm_network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func TestVmNetwork(t *testing.T) {
t.Fatalf("failed to create escape veth pair: %v", err)
}

clientMac, _ := net.ParseMAC(clientMacAddress)
clientMac, _ := net.ParseMAC(clientMacAddrs[0])

var csn *nettools.ContainerSideNetwork
if err := contNS.Do(func(ns.NetNS) error {
Expand Down

0 comments on commit 2ad776c

Please sign in to comment.