additional error handling; use path buffers; improve logic

This commit is contained in:
lost
2026-02-16 02:03:04 -07:00
parent 31311ee99e
commit 4177df0f4a
37 changed files with 178 additions and 267 deletions

View File

@@ -1,5 +0,0 @@
chassis {
users {
{{ username }};
}
}

View File

@@ -0,0 +1,8 @@
interfaces {
{%- set interfaces = uplinks | default(value=[uplink]) %}
{%- for interace in interfaces %}
{{ interace }} {
unit 0 family inet dhcp;
}
{%- endfor %}
}

View File

@@ -1,4 +0,0 @@
interfaces {
{{ uplink }} {
}
}

View File

@@ -0,0 +1,3 @@
protocols {
{{ protocol }};
}

View File

@@ -1,4 +0,0 @@
protocols {
{{ protocol }} {
}
}

View File

@@ -1,5 +1,4 @@
files:
- system
- chassis
- interfaces
- protocols

View File

@@ -0,0 +1,8 @@
system {
hostname {{ hostname }};
location "{{ location }}";
zone {{ zone }};
users {
{{ username }};
}
}

View File

@@ -1 +0,0 @@
../common/ex/system.tmpl