From e9170ef741c65533de72f6c5cb48819a4d3a9c2c Mon Sep 17 00:00:00 2001 From: Daniel Ankers Date: Fri, 19 Jan 2024 10:18:35 +0000 Subject: [PATCH] Sort list of users --- juniper-macros.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juniper-macros.j2 b/juniper-macros.j2 index 3c59056..0f2d7f6 100644 --- a/juniper-macros.j2 +++ b/juniper-macros.j2 @@ -8,7 +8,7 @@ system { class sysadmin { permissions [ admin clear configure control firewall-control interface interface-control network reset rollback routing routing-control snmp snmp-control trace-control view view-configuration ]; } -{% for user, details in device['config_context']['users'].items() %} +{% for user, details in device['config_context']['users']|dictsort %} user {{ user }} { uid 200{{ loop.index }}; class {{ details['role'] }};