Refactor Quasar interface handling and update TTP template

- Enhanced the `interfaces` method in the `Quasar` model to process bulk interfaces, returning a structured list of interface details.
- Updated the TTP template to reflect the change from `interfaces` to `bulkinterfaces` for better organization of interface configurations.
This commit is contained in:
IluaAir
2026-03-12 23:39:47 +03:00
parent e3392f6c76
commit 586e52282b
2 changed files with 15 additions and 6 deletions

View File

@@ -55,7 +55,7 @@ default_system = {
{{ ignore("\s*") }}config {{ interface }} ipv4 address {{ ip_address }}/{{ mask }} gateway {{ gateway }} {{ ignore }}
</group>
<group name="interfaces.{{ interface }}">
<group name="bulkinterfaces.{{ interface }}">
{{ ignore("\s*") }}config interface {{ interface | _start_ }} fec none mode force-up enable
{{ ignore("\s*") }}config interface {{ interface | _start_ }} description {{ description | ORPHRASE | strip('"')}}
</group>