A REST API payload can leak an internal bridge domain subnet from a source virtual routing and forwarding (VRF) instance to a destination tenant and VRF instance.
Route leaking for an internal bridge domain (BD) subnet provides routing reachability for a specified prefix in another VRF instance.
-
The leaked prefix must match or be contained within an existing BD subnet.
-
The configuration identifies the source VRF instance and one or more destination tenant and VRF pairs.
-
The source and destination scope settings control whether Layer 3 Outside (L3Out) connections can advertise the leaked prefix.
REST API objects
|
Object |
Purpose |
|---|---|
|
|
Contains the route-leaking configuration for the source VRF instance. |
|
|
Specifies the internal BD prefix to leak and its default L3Out advertisement scope. |
|
|
Identifies a destination tenant and VRF instance and optionally overrides the parent advertisement scope. |
Route leaking provides routing reachability only. Configure the required contract relationships separately to permit traffic between endpoint security groups (ESGs) in different VRF instances.
XML payload
The following payload leaks 192.168.1.0/24 from VRFA in tenant t0 to VRFB in tenant t1:
<polUni>
<fvTenant name="t0">
<fvCtx name="VRFA">
<leakRoutes>
<!-- Disable L3Out advertisement for the leaked prefix. -->
<leakInternalSubnet ip="192.168.1.0/24" scope="private">
<!-- Inherit the advertisement scope from the parent. -->
<leakTo ctxName="VRFB" tenantName="t1"
scope="inherit"/>
</leakInternalSubnet>
</leakRoutes>
</fvCtx>
</fvTenant>
</polUni>
In this example, scope="private" disables L3Out advertisement for the leaked prefix. The destination uses scope="inherit" and therefore retains the scope configured on leakInternalSubnet.
The source BD subnet and the source and destination VRF instances must exist before you submit the payload.