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,3 +1,3 @@
regional:
partition: us
username: netadmin
partition: us
username: netadmin

View File

@@ -0,0 +1,5 @@
common:
partition: us
layer: ex-core-r
protocol: ospf
uplink: et-0/0/36

View File

@@ -0,0 +1,2 @@
zonal:
zone: 1

View File

@@ -0,0 +1,2 @@
zonal:
zone: 2

View File

@@ -0,0 +1,4 @@
common:
layer: ex-edge-r
protocol: bgp
uplink: et-0/0/0

View File

@@ -0,0 +1,2 @@
zonal:
zone: 1

View File

@@ -0,0 +1,2 @@
zonal:
zone: 2

View File

@@ -0,0 +1,8 @@
device:
zone: 5
hostname: xyz5-ex-edge-r101
uplinks:
- xe-0/0/1
- xe-0/0/2
- xe-0/0/3
- xe-0/0/4

View File

@@ -1,4 +0,0 @@
common:
layer: ex-edge-r
protocol: bgp
uplink: et-0/0/0

View File

@@ -1,2 +0,0 @@
zonal:
zone: 1

View File

@@ -1,2 +0,0 @@
zonal:
zone: 2

View File

@@ -1,5 +0,0 @@
common:
partition: eu
layer: ex-edge-r
protocol: ospf
uplink: et-0/0/36

View File

@@ -1,2 +0,0 @@
zonal:
az: 1

View File

@@ -1,2 +0,0 @@
zonal:
az: 2

1
demo/tmpl/ex-core-r Symbolic link
View File

@@ -0,0 +1 @@
ex-edge-r/

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

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

View File

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