Try to fix hostname again
parent
072d3812bc
commit
0417686403
|
|
@ -1,6 +1,6 @@
|
||||||
{% macro systemsection(device,name) %}
|
{% macro systemsection(device) %}
|
||||||
system {
|
system {
|
||||||
host-name {{ name }};
|
host-name {{ device['hostname'] }};
|
||||||
root-authentication {
|
root-authentication {
|
||||||
encrypted-password "{{ device['config_context']['root_pw'] }}"; ## Client Higher
|
encrypted-password "{{ device['config_context']['root_pw'] }}"; ## Client Higher
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{% set device=({'name':name,'device_role':device_role,'primary_ip4':primary_ip4,'rack':rack,'interfaces':interfaces,'peering_interfaces':peering_interfaces,'config_context':config_context}) %}
|
{% set device=({'hostname':hostname,'device_role':device_role,'primary_ip4':primary_ip4,'rack':rack,'interfaces':interfaces,'peering_interfaces':peering_interfaces,'config_context':config_context}) %}
|
||||||
{% import "juniper-macros.j2" as junos %}
|
{% import "juniper-macros.j2" as junos %}
|
||||||
{{ junos.systemsection(device,name) }}
|
{{ junos.systemsection(device) }}
|
||||||
{% if device_role['name'] == 'Leaf' %}
|
{% if device_role['name'] == 'Leaf' %}
|
||||||
{{ junos.chassissection(device) }}
|
{{ junos.chassissection(device) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue