Bases: object
Class used for querying the HAProxy statistics socket.
The CSV output is defined in the HAProxy documentation:
http://cbonte.github.io/haproxy-dconv/configuration-1.4.html#9
Get status for each server and the pool as a whole.
pool data structure {<pool-name>: { ‘uuid’: <uuid>, ‘status’: ‘UP’|’DOWN’, ‘members’: [<name>: ‘UP’|’DOWN’|’DRAIN’|’no check’] }}
Get and parse output from ‘show stat’ command.
proxy_iid – Proxy ID (column 27 in CSV output). -1 for all.
object_type – Select the type of dumpable object. Values can be ORed. -1 - everything 1 - frontends 2 - backends 4 - servers
server_id – Server ID (column 28 in CSV output?), or -1 for everything.
stats (split into an array by newline)
Bases: object
Bases: octavia.amphorae.backends.utils.interface_file.InterfaceFile
Bases: octavia.amphorae.backends.utils.interface_file.InterfaceFile
Calculate the ICMPv6 checksum for a packet.
packet – The packet bytes to checksum.
The checksum integer.
Sends a gratuitous ARP for ip_address on the interface.
interface – The interface name to send the GARP on.
ip_address – The IP address to advertise in the GARP.
net_ns – The network namespace to send the GARP from.
None
Sends a unsolicited neighbor advertisement for an ip on the interface.
interface – The interface name to send the GARP on.
ip_address – The IP address to advertise in the GARP.
net_ns – The network namespace to send the GARP from.
None
Send an address advertisement.
This method will send either GARP (IPv4) or neighbor advertisements (IPv6) for the ip address specified.
interface – The interface name to send the advertisement on.
ip_address – The IP address to advertise.
net_ns – The network namespace to send the advertisement from.
None
Gets the interface name from an IP address.
ip_address – The IP address to lookup.
net_ns – The network namespace to find the interface in.
The interface name.
exceptions.InvalidIPAddress – Invalid IP address provided.
octavia.common.exceptions.NotFound – No interface was found.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.