import string

template = string.Template("""
Defaults:contrail !requiretty

Cmnd_Alias CONFIGRESTART = /usr/sbin/service supervisor-config restart

contrail ALL = (root) NOPASSWD:CONFIGRESTART 
""")

import string

template = string.Template("""
Defaults:contrail !requiretty

Cmnd_Alias CONFIGRESTART = /usr/sbin/service supervisor-config restart
Cmnd_Alias IFMAPRESTART = /usr/sbin/service ifmap restart

contrail ALL = (root) NOPASSWD:CONFIGRESTART,IFMAPRESTART
""")

Allow contrail user to restart ifmap without password closes-jira-bug: JCB-218958
Allow contrail user to restart ifmap without password
closes-jira-bug: JCB-218958

Change-Id: Id95001cf5ab455650b5b900b9b5f7bb33ccef8e3
