'Enabled action, marks server to UP and checks are re-enabled,
also supports to get current weight for server (default) and
set the weight for haproxy backend server when provides.'

def enabled(self, host, backend, weight):

    cmd = 'get    weight    $pxname/$svname;    enable    server    $pxname/$svname'
    if weight:
        cmd += (';    set    weight    $pxname/$svname    %s' % weight)
    self.execute_for_backends(cmd, backend, host, 'UP')
