From b30bead7f92014774d4d5034c60cb0ce8f5c03ed Mon Sep 17 00:00:00 2001 From: Aleksandr Kurbatov <aleksandr.kurbatov@GL1342-AKURBATOV.local> Date: Thu, 19 Sep 2024 11:33:40 +0100 Subject: [PATCH] general - style cleanup --- .../gap_ansible/roles/bc_templates/routers/nokia/general.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/geant/gap_ansible/roles/bc_templates/routers/nokia/general.j2 b/geant/gap_ansible/roles/bc_templates/routers/nokia/general.j2 index 0e7e5aa4..1cbe508f 100644 --- a/geant/gap_ansible/roles/bc_templates/routers/nokia/general.j2 +++ b/geant/gap_ansible/roles/bc_templates/routers/nokia/general.j2 @@ -1,9 +1,9 @@ {#This template takes care of hostname, motd, location and other general settings#} -{% set hostname_as_a_list= inventory_hostname.split('.')%} -{% set short_hostname= hostname_as_a_list[:3] | join('.')%} +{% set hostname_as_a_list= inventory_hostname.split('.') %} +{% set short_hostname= hostname_as_a_list[:3] | join('.') %} <system xmlns="urn:nokia.com:sros:ns:yang:sr:conf" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nokia-attr="urn:nokia.com:sros:ns:yang:sr:attributes"> <contact alu:operation="replace">{{ nokia_system_contact }}</contact> - <name alu:operation="replace">{{ short_hostname}}</name> + <name alu:operation="replace">{{ short_hostname }}</name> <location alu:operation="replace">{{ nokia_snmp_location }}</location> <load-balancing alu:operation="replace"> <l4-load-balancing>true</l4-load-balancing> -- GitLab