Changelog

v1.2.0 - 2026-11-23

  • An empty list in the desired state is no longer reported as drift against the controller, which leaves an empty list out of the object it returns: a VRF context without communities (bgp_profile.community = []) never converged (pxsdc#318). A list the controller still has items in is a change, and the update empties it.

  • New avi::VirtualService, avi::Pool, avi::HealthMonitor and avi::AnalyticsProfile, generated from the controller’s VirtualService, Pool, HealthMonitor and AnalyticsProfile schemas (nested types in avi::virtual_service::definitions, avi::pool::definitions, avi::health_monitor::definitions and avi::analytics_profile::definitions), identified by credentials, tenant_scope and name: the objects of a load balancer service besides its avi::VsVip. The items of their lists pair up with their peer on the controller, so changing one does not rewrite the others: a service port by port, port_range_end and override_network_profile_ref, a pool member by ip and port, a static DNS record by fqdn and type and its A, AAAA, MX, TXT, NS and SRV data by value, an EVH host by host and its rules by name, datascripts and HTTP, DNS and topology policies by index. The end of a single port range and the target of a SRV record, which the controller fills in, are sent filled in the same way

  • A reference identifying a list item is compared by the name of what it points at, like a plain reference field already was: an item pointing at another object by name (override_network_profile_ref="/api/networkprofile?name=System-TCP-Proxy") pairs up with itself on the controller, which answers with the absolute reference

v1.1.0 - 2026-10-27

  • New avi::GslbService, a GSLB service managed on the GSLB leader, with the avi::create_gslb_site_uuid_reference, avi::create_virtual_service_uuid_reference and avi::create_virtual_service_address_reference plugins to point a pool member at a virtual service by name

  • A list of name based references (health_monitor_refs) is no change when the controller answers with the absolute references it resolved them into, like a single one already was

  • New avi::vrf_context::BgpPeer and avi::vrf_context::StaticRoute: one BGP peer (bgp_profile.peers) or one static route (static_routes) of a VRF context, as a resource of its own, so each connectivity can own the items it adds to a route domain. Generated from the BgpPeer/StaticRoute definitions of the controller’s VrfContext schema (nested types in avi::vrf_context::bgp_peer::definitions and avi::vrf_context::static_route::definitions), they point at their VRF context the way it is found itself - vrf_context (its name), cloud, tenant_scope, credentials - and are identified in the model by name (a peer) or route_id (a route). A deploy adds the item to the VRF context, or updates the one with the same peer_ip/peer_ip6 (route_id), and a purge takes it out; the whole VRF context is re-read and written under a lock it shares with the avi::VrfContext resource and the other items, so concurrent writes on one agent do not drop each other’s change. An item of a VRF context that is not there is skipped, a peer of a VRF context without a bgp_profile fails, and an item whose VRF context is gone is purged already

  • avi::VrfContext has two new attributes, manage_bgp_peers and manage_static_routes (default true, which is the behaviour so far). Set to false, the VRF context leaves that list to the item resources above: it is neither compared nor pruned, an update writes back the list the controller has, and setting it in the model fails the export. An update of a VRF context now re-reads it under that same lock before writing it

v1.0.0 - 2026-10-16

  • An avi::waiter::Waiter linked to a purged resource considers an object that is not there to meet its conditions, instead of no object matches: on its way out, the object is already gone. This is how a waiter holds back the removal of a service engine until it disconnected (se_connected=false) without blocking it when the engine never registered or is already gone. When its lookups find nothing, a waiter also looks the object up by the uuid fact its resource reported: the name of an engine is commonly a fact of its VM, which is gone by the time the engine is removed

  • New avi::waiter::Waiter: a condition on the object of another resource (resource=<an AVI resource>), as a resource of its own. It looks the object up the way that resource does - endpoint, name, tenant, cloud, credentials - and is deployed once it satisfies conditions (paths in the object - license_state, data_vnics[mac_address=...], or with a wildcard data_vnics[mac_address=*].mac_address, met when any value matches - and the value they must have, which may be a reference), and skipped until then - or failed, with skip_if_not_found=false (which may be a reference) - so what requires it is held back and the waiter says why. It checks once per deploy and never sleeps: waiting is left to the agent, which deploys a skipped resource again. A dry run reports what is not met yet. The conditions are checked against the controller’s schema of the object at export (plus the runtime fields the swagger leaves out, such as license_state): a path the object does not have, or a literal value its type or enum rules out, fails the compile instead of skipping forever

  • Breaking: avi::service_engine::ServiceEngine and avi::service_engine::Interface no longer wait themselves: wait_timeout, poll_interval and skip_if_not_found are removed. An engine that did not register yet, or an interface that was not discovered yet, now skips the resource; put an avi::waiter::Waiter in its requires to wait for it. Waiting for a license is new and only done by a waiter: an engine registers before it is licensed, and the controller refuses to move an unlicensed one between service engine groups (400 Cannot perform deactivate/activate operation since SE is not licensed.) - require a waiter on license_state before setting se_group_ref. A freshly registered engine that is already where the model wants it is not written to

v0.1.2 - 2026-10-05

  • Purging an avi::Tenant waits, for up to 10 minutes, for the service engines registered in it to lose their connection before removing them. In a cloud in no access mode the controller refuses to delete an engine that is still connected (400 Service Engine connected to controller cannot be deleted with no access mode), and it only notices that the VM behind an engine is gone some time after that VM was deleted. An engine still connected after the wait fails the tenant with a message naming it

v0.1.1 - 2026-09-28

  • The model is now generated in full: the entities no controller schema describes - avi::service_engine::base::{EngineLookup,Registration,InterfaceScope}, avi::vrf_context::base::CloudScope and avi::se_image::ServiceEngineImage - are declared with the module factory in inmanta_plugins/avi/resources.py and emitted by make generate along with the schema-driven ones, so model/base.cf is the only hand-written model file left. Same namespaces, same entities, same attributes and defaults: avi::service_engine::base now lives in model/service_engine/base/_init.cf instead of model/service_engine/base.cf, which changes nothing for a model that imports it

  • avi::service_engine::ServiceEngine now writes the attributes a model sets on a registered engine, which is what the last step of the load-balancer creation needs: se_group_ref="/api/serviceenginegroup?name=<group>" moves the engine from the default group of its cloud into the group of its own service. The engine is replaced as a whole (it has no endpoint for a single field) under the same per-engine lock the interfaces use, and name, data_vnics, mgmt_vnic and resources are never written - AVI derives the name from the engine, and the interfaces have resources of their own. An engine the model sets nothing on still only waits for the engine to register, as before

v0.1.0 - 2026-09-17

  • Purging an avi::Tenant first removes the service engines registered in it. An engine registers itself into the tenant whose token it was given, so nothing guarantees the model holds one for every engine that ended up there - and the controller refuses to delete a tenant that one still refers to (400 Cannot delete Tenant ... is referred by:  <engine>), which no later deploy could recover from either

  • avi::service_engine::Interface is identified by a new required name attribute instead of by its mac_address. A cloud only assigns that address when it creates the port behind the interface, so it could never be part of a resource id; keeping it out of the identity lets it be a reference resolved on the agent - from the port’s own mac_address fact, typically - the way engine_name already could be. It is no longer sent in the body either: it identifies the interface rather than being written to it

  • avi::se_image::ServiceEngineImage reports the version of the image the controller serves - the build of its system image, 31.2.2-9059 - as the controller_version fact. inmanta_plugins.avi.resources.se_image_version(client) reads that version off a controller, for a model that names an uploaded copy of the image after it

  • A reference the controller resolved into its absolute form no longer reports as a change against the name based form a model points at it with: the reads ask the controller for the name of what a reference points at (include_name), and references are compared by that name

  • Removing the last BGP peer of an avi::VrfContext now takes it off the controller: an emptied relation is left out of the exported body, which used to read as a field the model does not manage. Resources declare the paths they own exhaustively through the new prune_when_absent

  • initial release of module