def bounce_local(name, drain=False):
    ret = {'name': name,
           'changes': {},
           'result': None,
           'comment': ''}

    if __opts__['test']:
        ret['comment'] = 'Bouncing local node'
        return ret

    if drain:
        __salt__['trafficserver.bounce_local'](drain=True)
        ret['result'] = True
        ret['comment'] = 'Bounced local node with drain option'
        return ret
    else:
        __salt__['trafficserver.bounce_local']()
        ret['result'] = True
        ret['comment'] = 'Bounced local node'
        return ret
Bounce Traffic Server on the local node. Bouncing Traffic Server shuts down
dataset/ETHPy150Open saltstack/salt/salt/states/trafficserver.py/bounce_local