From 4b351ebfec2221a84cc5eaeb7f1c292999bc372c Mon Sep 17 00:00:00 2001 From: Cory Hawkless Date: Mon, 27 Jun 2022 22:52:24 +0930 Subject: [PATCH] Enable custom bond mode --- templates/interfaces.j2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/interfaces.j2 b/templates/interfaces.j2 index c67890a..0d84183 100644 --- a/templates/interfaces.j2 +++ b/templates/interfaces.j2 @@ -95,7 +95,11 @@ auto {{ item['name'] }} {% if item['mtu'] is defined %} mtu {{ item['mtu'] }} {% endif %} - bond-mode active-backup +{% if item['bond-mode'] is defined %} + bond-mode {{ item['bond-mode'] }} +{% else %} + bond-mode active-backup +{% endif %} bond-miimon 100 bond-slaves none {% if item['routes'] is defined %}