proxysql_tools.aws package

Submodules

proxysql_tools.aws.aws module

proxysql_tools.aws.aws.attach_network_interface(network_interface, instance_id)[source]
proxysql_tools.aws.aws.aws_notify_master(cfg)[source]

The function moves network interface to local instance and brings it up. Steps:

  • Detach network interface if attached to anywhere.
  • Attach the network interface to the local instance.
  • Configure IP address on this instance
Parameters:cfg – config object
proxysql_tools.aws.aws.configure_local_interface(local_interface, ip, netmask)[source]
proxysql_tools.aws.aws.detach_network_interface(network_interface)[source]
proxysql_tools.aws.aws.ensure_local_interface_is_gone(local_interface)[source]
proxysql_tools.aws.aws.ensure_network_interface_is_detached(network_interface)[source]
proxysql_tools.aws.aws.get_my_instance_id()[source]
proxysql_tools.aws.aws.get_network_interface(ip)[source]
proxysql_tools.aws.aws.get_network_interface_state(network_interface)[source]
proxysql_tools.aws.aws.network_interface_attached(network_interface)[source]

Check whether network interface is attached

Parameters:network_interface – network interface id
Returns:True or False

Module contents