From 250cb8fa2cb86bb4b77bfa39c2dc7204d0f7e4bb Mon Sep 17 00:00:00 2001 From: J vanBemmel Date: Sat, 4 Jan 2025 01:17:32 -0600 Subject: [PATCH] Ubuntu: Add static routes per interface instead of a separate single file (#1737) --- .../ansible/templates/initial/linux/ubuntu.j2 | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/netsim/ansible/templates/initial/linux/ubuntu.j2 b/netsim/ansible/templates/initial/linux/ubuntu.j2 index 9dfe80864..270659ba3 100644 --- a/netsim/ansible/templates/initial/linux/ubuntu.j2 +++ b/netsim/ansible/templates/initial/linux/ubuntu.j2 @@ -115,7 +115,7 @@ network: SCRIPT {% endif %} -# Interface addressing and bonds +# Interface addressing and bonds, including any static routes {% for l in interfaces|default([]) if (l.ipv4 is defined or l.ipv6 is defined or l.dhcp is defined or l.type in ['lag','bond'])%} cat <