From 4a8ecbe978566ad6ba74a6ef0328e2a3b3fa7c60 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Sat, 23 Feb 2013 15:50:02 +0100 Subject: [PATCH] allow vsys to be set by all persons - for PLC_VSYS_DEFAULTS --- db-config.d/000-functions | 2 ++ db-config.d/010-slice_tags | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/db-config.d/000-functions b/db-config.d/000-functions index 63c3ed7..5779b0e 100644 --- a/db-config.d/000-functions +++ b/db-config.d/000-functions @@ -23,6 +23,8 @@ def SetRole(level, role): g_known_tag_types = [tag_type['tagname'] for tag_type in GetTagTypes()] g_known_tag_types.sort() +def AllPersonRoles (): return [ 'pi','user','tech' ] + def SetTagType(tag_type): try: tagname=tag_type['tagname'] diff --git a/db-config.d/010-slice_tags b/db-config.d/010-slice_tags index 71fe6a3..2348f2d 100644 --- a/db-config.d/010-slice_tags +++ b/db-config.d/010-slice_tags @@ -95,9 +95,11 @@ slicetag_types = \ 'category' : 'slice/rspec'}, # Vsys + # need to allow this one so that slice can have that set from PLC_VSYS_DEFAULT {'tagname': "vsys", 'description': "Bind vsys script fd's to a slice's /vsys directory.", - 'category' : 'slice/rspec'}, + 'category' : 'slice/rspec', + 'roles': AllPersonRoles()}, {'tagname': "vsys_vnet", 'description': """Specify the IP range that can be used in a given slice for virtual devices involved in topologies, e.g. 192.168.100.0/24""", -- 2.43.0