Python script as a wrapper for Aviatrix API
pip install aviatrix-sdk
from aviatrix import Aviatrix
controller_ip = 'x.x.x.x'
username = 'admin'
password = 'password'
controller = Aviatrix(controller_ip)
controller.login(username,password)
from aviatrix import Aviatrix
controller_ip = 'x.x.x.x'
username = 'admin'
password = 'password'
admin_email = '[email protected]'
aviatrixroleapp = 'arn:aws:iam::XXXXXXXXXXX:role/aviatrix-role-app'
aviatrixroleec2 = 'arn:aws:iam::XXXXXXXXXXX:role/aviatrix-role-ec2'
controller = Aviatrix(controller_ip)
controller.login(username,password)
controller.setup_account_profile("<<AWS Account Name>>",
password,
admin_email,
"1",
account,
aviatrixroleapp,
aviatrixroleec2)
from aviatrix import Aviatrix
controller_ip = 'x.x.x.x'
username = 'admin'
password = 'password'
gateway_name = 'GatewayName'
vpcid = 'vpc-XXXXXX'
region = 'us-east-1'
gwsize = 't2.micro'
subnet = '10.x.x.x/24'
controller = Aviatrix(controller_ip)
controller.login(username,password)
controller.create_gateway("AWSAccount",
"1",
gateway_name,
vpcid,
region_spoke,
gwsize_spoke,
subnet_spoke)
from aviatrix import Aviatrix
controller_ip = 'x.x.x.x'
username = 'admin'
password = 'password'
gateway_name =
controller = Aviatrix(controller_ip)
controller.login(username,password)
controller.CID