def show_frontends(socket='/var/run/haproxy.sock'):
 ha_conn = _get_conn(socket)
 ha_cmd = haproxy.cmds.showFrontends()
 return ha_conn.sendCmd(ha_cmd)

def show_frontends ( socket = '/var/run/haproxy.sock' ) : ha_conn = _get_conn ( socket ) ha_cmd = haproxy . cmds . showFrontends ( ) return ha_conn . sendCmd ( ha_cmd )
show haproxy frontends socket haproxy stats socket cli example: .