]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Add antrea and calico interface pattern to GUESTINFO_DEFAULT_IFACE_EXCLUDES.
authorKaty Feng <fkaty@vmware.com>
Mon, 6 Mar 2023 18:32:39 +0000 (10:32 -0800)
committerKaty Feng <fkaty@vmware.com>
Mon, 6 Mar 2023 18:32:39 +0000 (10:32 -0800)
Since k8s are more popular nowadays and their CNI also has IPs for pods,
we should also exclude the IP assigned by popular CNI.

Fixes issue: https://github.com/vmware/open-vm-tools/issues/638

Pull request: https://github.com/vmware/open-vm-tools/pull/639

open-vm-tools/AUTHORS
open-vm-tools/services/plugins/guestInfo/guestInfoServer.c
open-vm-tools/tools.conf

index ac5fd878e72c75656efa5b7f85cd1dc5b8260551..c43c7403450e00bbce36ec2fb6c791fdf07899a5 100644 (file)
@@ -88,3 +88,6 @@ Bernd Zeimetz   Fix building containerinfo plugin on i386
 
 Dirk Mueller    Detect the proto files for containerd grpc client on SUSE like systems
                 - https://github.com/vmware/open-vm-tools/pull/626
+
+Lubron Zhan     Add antrea and calico interfaces to GUESTINFO_DEFAULT_IFACE_EXCLUDES
+Naadir Jeewa    - https://github.com/vmware/open-vm-tools/pull/639
index 321dc9d5e5d3e8a7778ad109716282d28102ed9f..d1d5f557b09a0821a0fcc383a2ff601fcb298360 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 1998-2022 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2023 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -93,7 +93,7 @@ VM_EMBED_VERSION(VMTOOLSD_VERSION_STRING);
 #if defined(_WIN32)
 #define GUESTINFO_DEFAULT_IFACE_EXCLUDES "vEthernet*"
 #else
-#define GUESTINFO_DEFAULT_IFACE_EXCLUDES "docker*,veth*,virbr*"
+#define GUESTINFO_DEFAULT_IFACE_EXCLUDES "docker*,veth*,virbr*,antrea-*,cali*"
 #endif
 
 /*
index e5a03a9c931d57698958a5605e8ecbc2c337f0c3..61d85331c628ec68c49fba5695b7557fcb765051 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2019-2022 VMware, Inc.  All rights reserved.
+# Copyright (c) 2019-2023 VMware, Inc.  All rights reserved.
 
 # "CAUTION: tools.conf is highly syntax sensitive file. Use extreme caution
 # while editing it. If modified, it is automatically re-loaded by
 # Set a comma separated list of network interface names that shall be ignored.
 # Interface names can use wildcards like '*' and '?'.
 # Default for Linux and all non-Windows:
-#exclude-nics=veth*,docker*,virbr*
+#exclude-nics=veth*,docker*,virbr*,antrea-*,cali*
 # Default for Windows:
 #exclude-nics=vEthernet*