Blueprint Templates
Imports
from aos.client import AosClient
from scripts.utils import deserialize_fixture
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
You will need to update the connection details below with your
specific AOS instance
AOS_IP = "<aos-IP>"
AOS_PORT = 443
AOS_USER = "admin"
AOS_PW = "aos-aos"
Login
aos = AosClient(protocol="https", host=AOS_IP, port=AOS_PORT)
aos.auth.login(AOS_USER, AOS_PW)
Import blueprint template
evpn_template = deserialize_fixture("evpn_template.json")
Create blueprint template
aos.design.templates.create(evpn_template)
Find blueprint template by name
aos.design.templates.find_by_name("apstra-evpn-mlag")