additional error handling; use path buffers; improve logic
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
regional:
|
||||
partition: us
|
||||
username: netadmin
|
||||
partition: us
|
||||
username: netadmin
|
||||
|
||||
5
demo/spec/xyz/ex-core-r/common.yaml
Normal file
5
demo/spec/xyz/ex-core-r/common.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
common:
|
||||
partition: us
|
||||
layer: ex-core-r
|
||||
protocol: ospf
|
||||
uplink: et-0/0/36
|
||||
2
demo/spec/xyz/ex-core-r/xyz1.common.yaml
Normal file
2
demo/spec/xyz/ex-core-r/xyz1.common.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
zonal:
|
||||
zone: 1
|
||||
2
demo/spec/xyz/ex-core-r/xyz2.common.yaml
Normal file
2
demo/spec/xyz/ex-core-r/xyz2.common.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
zonal:
|
||||
zone: 2
|
||||
4
demo/spec/xyz/ex-edge-r/common.yaml
Normal file
4
demo/spec/xyz/ex-edge-r/common.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
common:
|
||||
layer: ex-edge-r
|
||||
protocol: bgp
|
||||
uplink: et-0/0/0
|
||||
2
demo/spec/xyz/ex-edge-r/xyz1.common.yaml
Normal file
2
demo/spec/xyz/ex-edge-r/xyz1.common.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
zonal:
|
||||
zone: 1
|
||||
2
demo/spec/xyz/ex-edge-r/xyz2.common.yaml
Normal file
2
demo/spec/xyz/ex-edge-r/xyz2.common.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
zonal:
|
||||
zone: 2
|
||||
8
demo/spec/xyz/ex-edge-r/xyz5-ex-edge-r101.yaml
Normal file
8
demo/spec/xyz/ex-edge-r/xyz5-ex-edge-r101.yaml
Normal 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
|
||||
@@ -1,4 +0,0 @@
|
||||
common:
|
||||
layer: ex-edge-r
|
||||
protocol: bgp
|
||||
uplink: et-0/0/0
|
||||
@@ -1,2 +0,0 @@
|
||||
zonal:
|
||||
zone: 1
|
||||
@@ -1,2 +0,0 @@
|
||||
zonal:
|
||||
zone: 2
|
||||
@@ -1,5 +0,0 @@
|
||||
common:
|
||||
partition: eu
|
||||
layer: ex-edge-r
|
||||
protocol: ospf
|
||||
uplink: et-0/0/36
|
||||
@@ -1,2 +0,0 @@
|
||||
zonal:
|
||||
az: 1
|
||||
@@ -1,2 +0,0 @@
|
||||
zonal:
|
||||
az: 2
|
||||
1
demo/tmpl/ex-core-r
Symbolic link
1
demo/tmpl/ex-core-r
Symbolic link
@@ -0,0 +1 @@
|
||||
ex-edge-r/
|
||||
@@ -1,5 +0,0 @@
|
||||
chassis {
|
||||
users {
|
||||
{{ username }};
|
||||
}
|
||||
}
|
||||
8
demo/tmpl/ex-edge-r/interfaces.tera
Normal file
8
demo/tmpl/ex-edge-r/interfaces.tera
Normal file
@@ -0,0 +1,8 @@
|
||||
interfaces {
|
||||
{%- set interfaces = uplinks | default(value=[uplink]) %}
|
||||
{%- for interace in interfaces %}
|
||||
{{ interace }} {
|
||||
unit 0 family inet dhcp;
|
||||
}
|
||||
{%- endfor %}
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
interfaces {
|
||||
{{ uplink }} {
|
||||
}
|
||||
}
|
||||
3
demo/tmpl/ex-edge-r/protocols.tera
Normal file
3
demo/tmpl/ex-edge-r/protocols.tera
Normal file
@@ -0,0 +1,3 @@
|
||||
protocols {
|
||||
{{ protocol }};
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
protocols {
|
||||
{{ protocol }} {
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
files:
|
||||
- system
|
||||
- chassis
|
||||
- interfaces
|
||||
- protocols
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
system {
|
||||
hostname {{ hostname }};
|
||||
location "{{ location }}";
|
||||
zone {{ zone }};
|
||||
users {
|
||||
{{ username }};
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
../common/ex/system.tmpl
|
||||
Reference in New Issue
Block a user