[lxc-devel] [lxd/master] lxd/network/driver/ovn: Detect IPv6 DHCP options correctly

tomponline on Github lxc-bot at linuxcontainers.org
Tue Dec 15 19:12:39 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 361 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20201215/595073a0/attachment.bin>
-------------- next part --------------
From 5e507626b07034e4479ed3729152b2cc2cdd7e8d Mon Sep 17 00:00:00 2001
From: Thomas Parrott <thomas.parrott at canonical.com>
Date: Tue, 15 Dec 2020 19:11:31 +0000
Subject: [PATCH] lxd/network/driver/ovn: Detect IPv6 DHCP options correctly

Signed-off-by: Thomas Parrott <thomas.parrott at canonical.com>
---
 lxd/network/driver_ovn.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/network/driver_ovn.go b/lxd/network/driver_ovn.go
index 0339cd3732..8b17895a8c 100644
--- a/lxd/network/driver_ovn.go
+++ b/lxd/network/driver_ovn.go
@@ -2163,7 +2163,7 @@ func (n *ovn) InstanceDevicePortAdd(instanceUUID string, instanceName string, de
 			return "", err
 		}
 
-		if dhcpV4ID == "" {
+		if dhcpv6ID == "" {
 			return "", fmt.Errorf("Could not find DHCPv6 options for instance port")
 		}
 


More information about the lxc-devel mailing list