From e1c6992c55fad433af1683190636e0a92fa9a0d2 Mon Sep 17 00:00:00 2001
From: Jacky Wu <Colstuwjx@gmail.com>
Date: Wed, 24 Mar 2021 16:46:06 +0800
Subject: [PATCH] fix: correct hardcoded macvlan template, use var
 macvlan_interface. (#7401)

---
 .../macvlan/templates/centos-network-macvlan.cfg.j2             | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/network_plugin/macvlan/templates/centos-network-macvlan.cfg.j2 b/roles/network_plugin/macvlan/templates/centos-network-macvlan.cfg.j2
index 6bef22c84..e7bad788e 100644
--- a/roles/network_plugin/macvlan/templates/centos-network-macvlan.cfg.j2
+++ b/roles/network_plugin/macvlan/templates/centos-network-macvlan.cfg.j2
@@ -5,7 +5,7 @@ BOOTPROTO=none
 ONBOOT=yes
 NM_CONTROLLED=no
 
-MACVLAN_PARENT=eth2
+MACVLAN_PARENT={{ macvlan_interface }}
 MACVLAN_MODE=bridge
 
 IPADDR={{ node_pod_cidr|ipaddr('net')|ipaddr(1)|ipaddr('address') }}
-- 
GitLab