additional error handling; use path buffers; improve logic
This commit is contained in:
@@ -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
|
||||
|
||||
8
demo/tmpl/ex-edge-r/system.tera
Normal file
8
demo/tmpl/ex-edge-r/system.tera
Normal file
@@ -0,0 +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