nsx_l2_vpn

NSX L2 VPN — services + sessions.

L2 VPN extends a layer-2 segment across sites. Like IPsec VPN it has a per-tier-0 service plus per-service sessions, but the API surface is independent (and the data model is different — L2 sessions bind a transport_tunnel_path referencing an existing IPsec session).

Per-tier0 service path: /policy/api/v1/infra/tier-0s/{t0}/locale-services/{locale}/l2vpn-services.

saltext.vcf.clients.nsx_l2_vpn.create_session(opts, tier0, locale, service, session, profile=None, **spec)[source]

spec should include transport_tunnels (list of IPsec session paths) and direction (BOTH typical for site-to-site L2VPN).