From 974fff60381fefe21503c4a39070249050d6236e Mon Sep 17 00:00:00 2001 From: IluaAir Date: Fri, 13 Mar 2026 13:12:02 +0300 Subject: [PATCH] Update TTP template to escape whitespace in ignore patterns - Modified the TTP template to use double backslashes for escaping whitespace in the `ignore` function for both `interfaces` and `bulkinterfaces` groups, ensuring proper parsing of configuration lines. --- oxi/interfaces/models/templates/quasar.ttp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oxi/interfaces/models/templates/quasar.ttp b/oxi/interfaces/models/templates/quasar.ttp index acbd313..e633654 100644 --- a/oxi/interfaces/models/templates/quasar.ttp +++ b/oxi/interfaces/models/templates/quasar.ttp @@ -52,10 +52,10 @@ default_system = { -{{ ignore("\s*") }}config {{ interface }} ipv4 address {{ ip_address }}/{{ mask }} gateway {{ gateway }} {{ ignore }} +{{ ignore("\\s*") }}config {{ interface }} ipv4 address {{ ip_address }}/{{ mask }} gateway {{ gateway }} {{ ignore }} -{{ ignore("\s*") }}config interface {{ interface | _start_ }} fec none mode force-up enable -{{ ignore("\s*") }}config interface {{ interface | _start_ }} description {{ description | ORPHRASE | strip('"')}} +{{ ignore("\\s*") }}config interface {{ interface | _start_ }} fec none mode force-up enable +{{ ignore("\\s*") }}config interface {{ interface | _start_ }} description {{ description | ORPHRASE | strip('"')}} \ No newline at end of file