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::HealthMonitorandavi::AnalyticsProfile, generated from the controller’sVirtualService,Pool,HealthMonitorandAnalyticsProfileschemas (nested types inavi::virtual_service::definitions,avi::pool::definitions,avi::health_monitor::definitionsandavi::analytics_profile::definitions), identified bycredentials,tenant_scopeandname: the objects of a load balancer service besides itsavi::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 byport,port_range_endandoverride_network_profile_ref, a pool member byipandport, a static DNS record byfqdnandtypeand its A, AAAA, MX, TXT, NS and SRV data by value, an EVH host byhostand its rules byname, datascripts and HTTP, DNS and topology policies byindex. 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 wayA 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 theavi::create_gslb_site_uuid_reference,avi::create_virtual_service_uuid_referenceandavi::create_virtual_service_address_referenceplugins to point a pool member at a virtual service by nameA 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 wasNew
avi::vrf_context::BgpPeerandavi::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 theBgpPeer/StaticRoutedefinitions of the controller’sVrfContextschema (nested types inavi::vrf_context::bgp_peer::definitionsandavi::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 byname(a peer) orroute_id(a route). A deploy adds the item to the VRF context, or updates the one with the samepeer_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 theavi::VrfContextresource 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 abgp_profilefails, and an item whose VRF context is gone is purged alreadyavi::VrfContexthas two new attributes,manage_bgp_peersandmanage_static_routes(defaulttrue, which is the behaviour so far). Set tofalse, 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::Waiterlinked to a purged resource considers an object that is not there to meet its conditions, instead ofno 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 theuuidfact its resource reported: the name of an engine is commonly a fact of its VM, which is gone by the time the engine is removedNew
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 satisfiesconditions(paths in the object -license_state,data_vnics[mac_address=...], or with a wildcarddata_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, withskip_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 aslicense_state): a path the object does not have, or a literal value its type or enum rules out, fails the compile instead of skipping foreverBreaking:
avi::service_engine::ServiceEngineandavi::service_engine::Interfaceno longer wait themselves:wait_timeout,poll_intervalandskip_if_not_foundare removed. An engine that did not register yet, or an interface that was not discovered yet, now skips the resource; put anavi::waiter::Waiterin itsrequiresto 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 onlicense_statebefore settingse_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::Tenantwaits, 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::CloudScopeandavi::se_image::ServiceEngineImage- are declared with the module factory ininmanta_plugins/avi/resources.pyand emitted bymake generatealong with the schema-driven ones, somodel/base.cfis the only hand-written model file left. Same namespaces, same entities, same attributes and defaults:avi::service_engine::basenow lives inmodel/service_engine/base/_init.cfinstead ofmodel/service_engine/base.cf, which changes nothing for a model that imports itavi::service_engine::ServiceEnginenow 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, andname,data_vnics,mgmt_vnicandresourcesare 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::Tenantfirst 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 eitheravi::service_engine::Interfaceis identified by a new requirednameattribute instead of by itsmac_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 ownmac_addressfact, typically - the wayengine_namealready could be. It is no longer sent in the body either: it identifies the interface rather than being written to itavi::se_image::ServiceEngineImagereports the version of the image the controller serves - the build of its system image,31.2.2-9059- as thecontroller_versionfact.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 itA 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 nameRemoving the last BGP peer of an
avi::VrfContextnow 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 newprune_when_absentinitial release of module