iosxe.Vrf
Explore with Pulumi AI
This resource can manage the VRF configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Iosxe = Lbrlabs.PulumiPackage.Iosxe;
return await Deployment.RunAsync(() =>
{
var example = new Iosxe.Vrf("example", new()
{
AddressFamilyIpv4 = true,
AddressFamilyIpv6 = true,
Description = "VRF22 description",
Ipv4RouteTargetExports = new[]
{
new Iosxe.Inputs.VrfIpv4RouteTargetExportArgs
{
Value = "22:22",
},
},
Ipv4RouteTargetExportStitchings = new[]
{
new Iosxe.Inputs.VrfIpv4RouteTargetExportStitchingArgs
{
Value = "22:22",
},
},
Ipv4RouteTargetImports = new[]
{
new Iosxe.Inputs.VrfIpv4RouteTargetImportArgs
{
Value = "22:22",
},
},
Ipv4RouteTargetImportStitchings = new[]
{
new Iosxe.Inputs.VrfIpv4RouteTargetImportStitchingArgs
{
Value = "22:22",
},
},
Ipv6RouteTargetExports = new[]
{
new Iosxe.Inputs.VrfIpv6RouteTargetExportArgs
{
Value = "22:22",
},
},
Ipv6RouteTargetExportStitchings = new[]
{
new Iosxe.Inputs.VrfIpv6RouteTargetExportStitchingArgs
{
Value = "22:22",
},
},
Ipv6RouteTargetImports = new[]
{
new Iosxe.Inputs.VrfIpv6RouteTargetImportArgs
{
Value = "22:22",
},
},
Ipv6RouteTargetImportStitchings = new[]
{
new Iosxe.Inputs.VrfIpv6RouteTargetImportStitchingArgs
{
Value = "22:22",
},
},
Rd = "22:22",
RouteTargetExports = new[]
{
new Iosxe.Inputs.VrfRouteTargetExportArgs
{
Stitching = false,
Value = "22:22",
},
},
RouteTargetImports = new[]
{
new Iosxe.Inputs.VrfRouteTargetImportArgs
{
Stitching = false,
Value = "22:22",
},
},
VpnId = "22:22",
});
});
package main
import (
"github.com/lbrlabs/pulumi-iosxe/sdk/go/iosxe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iosxe.NewVrf(ctx, "example", &iosxe.VrfArgs{
AddressFamilyIpv4: pulumi.Bool(true),
AddressFamilyIpv6: pulumi.Bool(true),
Description: pulumi.String("VRF22 description"),
Ipv4RouteTargetExports: iosxe.VrfIpv4RouteTargetExportArray{
&iosxe.VrfIpv4RouteTargetExportArgs{
Value: pulumi.String("22:22"),
},
},
Ipv4RouteTargetExportStitchings: iosxe.VrfIpv4RouteTargetExportStitchingArray{
&iosxe.VrfIpv4RouteTargetExportStitchingArgs{
Value: pulumi.String("22:22"),
},
},
Ipv4RouteTargetImports: iosxe.VrfIpv4RouteTargetImportArray{
&iosxe.VrfIpv4RouteTargetImportArgs{
Value: pulumi.String("22:22"),
},
},
Ipv4RouteTargetImportStitchings: iosxe.VrfIpv4RouteTargetImportStitchingArray{
&iosxe.VrfIpv4RouteTargetImportStitchingArgs{
Value: pulumi.String("22:22"),
},
},
Ipv6RouteTargetExports: iosxe.VrfIpv6RouteTargetExportArray{
&iosxe.VrfIpv6RouteTargetExportArgs{
Value: pulumi.String("22:22"),
},
},
Ipv6RouteTargetExportStitchings: iosxe.VrfIpv6RouteTargetExportStitchingArray{
&iosxe.VrfIpv6RouteTargetExportStitchingArgs{
Value: pulumi.String("22:22"),
},
},
Ipv6RouteTargetImports: iosxe.VrfIpv6RouteTargetImportArray{
&iosxe.VrfIpv6RouteTargetImportArgs{
Value: pulumi.String("22:22"),
},
},
Ipv6RouteTargetImportStitchings: iosxe.VrfIpv6RouteTargetImportStitchingArray{
&iosxe.VrfIpv6RouteTargetImportStitchingArgs{
Value: pulumi.String("22:22"),
},
},
Rd: pulumi.String("22:22"),
RouteTargetExports: iosxe.VrfRouteTargetExportArray{
&iosxe.VrfRouteTargetExportArgs{
Stitching: pulumi.Bool(false),
Value: pulumi.String("22:22"),
},
},
RouteTargetImports: iosxe.VrfRouteTargetImportArray{
&iosxe.VrfRouteTargetImportArgs{
Stitching: pulumi.Bool(false),
Value: pulumi.String("22:22"),
},
},
VpnId: pulumi.String("22:22"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.iosxe.Vrf;
import com.pulumi.iosxe.VrfArgs;
import com.pulumi.iosxe.inputs.VrfIpv4RouteTargetExportArgs;
import com.pulumi.iosxe.inputs.VrfIpv4RouteTargetExportStitchingArgs;
import com.pulumi.iosxe.inputs.VrfIpv4RouteTargetImportArgs;
import com.pulumi.iosxe.inputs.VrfIpv4RouteTargetImportStitchingArgs;
import com.pulumi.iosxe.inputs.VrfIpv6RouteTargetExportArgs;
import com.pulumi.iosxe.inputs.VrfIpv6RouteTargetExportStitchingArgs;
import com.pulumi.iosxe.inputs.VrfIpv6RouteTargetImportArgs;
import com.pulumi.iosxe.inputs.VrfIpv6RouteTargetImportStitchingArgs;
import com.pulumi.iosxe.inputs.VrfRouteTargetExportArgs;
import com.pulumi.iosxe.inputs.VrfRouteTargetImportArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Vrf("example", VrfArgs.builder()
.addressFamilyIpv4(true)
.addressFamilyIpv6(true)
.description("VRF22 description")
.ipv4RouteTargetExports(VrfIpv4RouteTargetExportArgs.builder()
.value("22:22")
.build())
.ipv4RouteTargetExportStitchings(VrfIpv4RouteTargetExportStitchingArgs.builder()
.value("22:22")
.build())
.ipv4RouteTargetImports(VrfIpv4RouteTargetImportArgs.builder()
.value("22:22")
.build())
.ipv4RouteTargetImportStitchings(VrfIpv4RouteTargetImportStitchingArgs.builder()
.value("22:22")
.build())
.ipv6RouteTargetExports(VrfIpv6RouteTargetExportArgs.builder()
.value("22:22")
.build())
.ipv6RouteTargetExportStitchings(VrfIpv6RouteTargetExportStitchingArgs.builder()
.value("22:22")
.build())
.ipv6RouteTargetImports(VrfIpv6RouteTargetImportArgs.builder()
.value("22:22")
.build())
.ipv6RouteTargetImportStitchings(VrfIpv6RouteTargetImportStitchingArgs.builder()
.value("22:22")
.build())
.rd("22:22")
.routeTargetExports(VrfRouteTargetExportArgs.builder()
.stitching(false)
.value("22:22")
.build())
.routeTargetImports(VrfRouteTargetImportArgs.builder()
.stitching(false)
.value("22:22")
.build())
.vpnId("22:22")
.build());
}
}
import pulumi
import lbrlabs_pulumi_iosxe as iosxe
example = iosxe.Vrf("example",
address_family_ipv4=True,
address_family_ipv6=True,
description="VRF22 description",
ipv4_route_target_exports=[iosxe.VrfIpv4RouteTargetExportArgs(
value="22:22",
)],
ipv4_route_target_export_stitchings=[iosxe.VrfIpv4RouteTargetExportStitchingArgs(
value="22:22",
)],
ipv4_route_target_imports=[iosxe.VrfIpv4RouteTargetImportArgs(
value="22:22",
)],
ipv4_route_target_import_stitchings=[iosxe.VrfIpv4RouteTargetImportStitchingArgs(
value="22:22",
)],
ipv6_route_target_exports=[iosxe.VrfIpv6RouteTargetExportArgs(
value="22:22",
)],
ipv6_route_target_export_stitchings=[iosxe.VrfIpv6RouteTargetExportStitchingArgs(
value="22:22",
)],
ipv6_route_target_imports=[iosxe.VrfIpv6RouteTargetImportArgs(
value="22:22",
)],
ipv6_route_target_import_stitchings=[iosxe.VrfIpv6RouteTargetImportStitchingArgs(
value="22:22",
)],
rd="22:22",
route_target_exports=[iosxe.VrfRouteTargetExportArgs(
stitching=False,
value="22:22",
)],
route_target_imports=[iosxe.VrfRouteTargetImportArgs(
stitching=False,
value="22:22",
)],
vpn_id="22:22")
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@lbrlabs/pulumi-iosxe";
const example = new iosxe.Vrf("example", {
addressFamilyIpv4: true,
addressFamilyIpv6: true,
description: "VRF22 description",
ipv4RouteTargetExports: [{
value: "22:22",
}],
ipv4RouteTargetExportStitchings: [{
value: "22:22",
}],
ipv4RouteTargetImports: [{
value: "22:22",
}],
ipv4RouteTargetImportStitchings: [{
value: "22:22",
}],
ipv6RouteTargetExports: [{
value: "22:22",
}],
ipv6RouteTargetExportStitchings: [{
value: "22:22",
}],
ipv6RouteTargetImports: [{
value: "22:22",
}],
ipv6RouteTargetImportStitchings: [{
value: "22:22",
}],
rd: "22:22",
routeTargetExports: [{
stitching: false,
value: "22:22",
}],
routeTargetImports: [{
stitching: false,
value: "22:22",
}],
vpnId: "22:22",
});
resources:
example:
type: iosxe:Vrf
properties:
addressFamilyIpv4: true
addressFamilyIpv6: true
description: VRF22 description
ipv4RouteTargetExports:
- value: 22:22
ipv4RouteTargetExportStitchings:
- value: 22:22
ipv4RouteTargetImports:
- value: 22:22
ipv4RouteTargetImportStitchings:
- value: 22:22
ipv6RouteTargetExports:
- value: 22:22
ipv6RouteTargetExportStitchings:
- value: 22:22
ipv6RouteTargetImports:
- value: 22:22
ipv6RouteTargetImportStitchings:
- value: 22:22
rd: 22:22
routeTargetExports:
- stitching: false
value: 22:22
routeTargetImports:
- stitching: false
value: 22:22
vpnId: 22:22
Create Vrf Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Vrf(name: string, args?: VrfArgs, opts?: CustomResourceOptions);
@overload
def Vrf(resource_name: str,
args: Optional[VrfArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Vrf(resource_name: str,
opts: Optional[ResourceOptions] = None,
address_family_ipv4: Optional[bool] = None,
address_family_ipv6: Optional[bool] = None,
delete_mode: Optional[str] = None,
description: Optional[str] = None,
device: Optional[str] = None,
ipv4_route_target_export_stitchings: Optional[Sequence[VrfIpv4RouteTargetExportStitchingArgs]] = None,
ipv4_route_target_exports: Optional[Sequence[VrfIpv4RouteTargetExportArgs]] = None,
ipv4_route_target_import_stitchings: Optional[Sequence[VrfIpv4RouteTargetImportStitchingArgs]] = None,
ipv4_route_target_imports: Optional[Sequence[VrfIpv4RouteTargetImportArgs]] = None,
ipv6_route_target_export_stitchings: Optional[Sequence[VrfIpv6RouteTargetExportStitchingArgs]] = None,
ipv6_route_target_exports: Optional[Sequence[VrfIpv6RouteTargetExportArgs]] = None,
ipv6_route_target_import_stitchings: Optional[Sequence[VrfIpv6RouteTargetImportStitchingArgs]] = None,
ipv6_route_target_imports: Optional[Sequence[VrfIpv6RouteTargetImportArgs]] = None,
name: Optional[str] = None,
rd: Optional[str] = None,
route_target_exports: Optional[Sequence[VrfRouteTargetExportArgs]] = None,
route_target_imports: Optional[Sequence[VrfRouteTargetImportArgs]] = None,
vpn_id: Optional[str] = None)
func NewVrf(ctx *Context, name string, args *VrfArgs, opts ...ResourceOption) (*Vrf, error)
public Vrf(string name, VrfArgs? args = null, CustomResourceOptions? opts = null)
type: iosxe:Vrf
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VrfArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VrfArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VrfArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VrfArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VrfArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var vrfResource = new Iosxe.Vrf("vrfResource", new()
{
AddressFamilyIpv4 = false,
AddressFamilyIpv6 = false,
DeleteMode = "string",
Description = "string",
Device = "string",
Ipv4RouteTargetExportStitchings = new[]
{
new Iosxe.Inputs.VrfIpv4RouteTargetExportStitchingArgs
{
Value = "string",
Stitching = false,
},
},
Ipv4RouteTargetExports = new[]
{
new Iosxe.Inputs.VrfIpv4RouteTargetExportArgs
{
Value = "string",
},
},
Ipv4RouteTargetImportStitchings = new[]
{
new Iosxe.Inputs.VrfIpv4RouteTargetImportStitchingArgs
{
Value = "string",
Stitching = false,
},
},
Ipv4RouteTargetImports = new[]
{
new Iosxe.Inputs.VrfIpv4RouteTargetImportArgs
{
Value = "string",
},
},
Ipv6RouteTargetExportStitchings = new[]
{
new Iosxe.Inputs.VrfIpv6RouteTargetExportStitchingArgs
{
Value = "string",
Stitching = false,
},
},
Ipv6RouteTargetExports = new[]
{
new Iosxe.Inputs.VrfIpv6RouteTargetExportArgs
{
Value = "string",
},
},
Ipv6RouteTargetImportStitchings = new[]
{
new Iosxe.Inputs.VrfIpv6RouteTargetImportStitchingArgs
{
Value = "string",
Stitching = false,
},
},
Ipv6RouteTargetImports = new[]
{
new Iosxe.Inputs.VrfIpv6RouteTargetImportArgs
{
Value = "string",
},
},
Name = "string",
Rd = "string",
RouteTargetExports = new[]
{
new Iosxe.Inputs.VrfRouteTargetExportArgs
{
Value = "string",
Stitching = false,
},
},
RouteTargetImports = new[]
{
new Iosxe.Inputs.VrfRouteTargetImportArgs
{
Value = "string",
Stitching = false,
},
},
VpnId = "string",
});
example, err := iosxe.NewVrf(ctx, "vrfResource", &iosxe.VrfArgs{
AddressFamilyIpv4: pulumi.Bool(false),
AddressFamilyIpv6: pulumi.Bool(false),
DeleteMode: pulumi.String("string"),
Description: pulumi.String("string"),
Device: pulumi.String("string"),
Ipv4RouteTargetExportStitchings: iosxe.VrfIpv4RouteTargetExportStitchingArray{
&iosxe.VrfIpv4RouteTargetExportStitchingArgs{
Value: pulumi.String("string"),
Stitching: pulumi.Bool(false),
},
},
Ipv4RouteTargetExports: iosxe.VrfIpv4RouteTargetExportArray{
&iosxe.VrfIpv4RouteTargetExportArgs{
Value: pulumi.String("string"),
},
},
Ipv4RouteTargetImportStitchings: iosxe.VrfIpv4RouteTargetImportStitchingArray{
&iosxe.VrfIpv4RouteTargetImportStitchingArgs{
Value: pulumi.String("string"),
Stitching: pulumi.Bool(false),
},
},
Ipv4RouteTargetImports: iosxe.VrfIpv4RouteTargetImportArray{
&iosxe.VrfIpv4RouteTargetImportArgs{
Value: pulumi.String("string"),
},
},
Ipv6RouteTargetExportStitchings: iosxe.VrfIpv6RouteTargetExportStitchingArray{
&iosxe.VrfIpv6RouteTargetExportStitchingArgs{
Value: pulumi.String("string"),
Stitching: pulumi.Bool(false),
},
},
Ipv6RouteTargetExports: iosxe.VrfIpv6RouteTargetExportArray{
&iosxe.VrfIpv6RouteTargetExportArgs{
Value: pulumi.String("string"),
},
},
Ipv6RouteTargetImportStitchings: iosxe.VrfIpv6RouteTargetImportStitchingArray{
&iosxe.VrfIpv6RouteTargetImportStitchingArgs{
Value: pulumi.String("string"),
Stitching: pulumi.Bool(false),
},
},
Ipv6RouteTargetImports: iosxe.VrfIpv6RouteTargetImportArray{
&iosxe.VrfIpv6RouteTargetImportArgs{
Value: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
Rd: pulumi.String("string"),
RouteTargetExports: iosxe.VrfRouteTargetExportArray{
&iosxe.VrfRouteTargetExportArgs{
Value: pulumi.String("string"),
Stitching: pulumi.Bool(false),
},
},
RouteTargetImports: iosxe.VrfRouteTargetImportArray{
&iosxe.VrfRouteTargetImportArgs{
Value: pulumi.String("string"),
Stitching: pulumi.Bool(false),
},
},
VpnId: pulumi.String("string"),
})
var vrfResource = new Vrf("vrfResource", VrfArgs.builder()
.addressFamilyIpv4(false)
.addressFamilyIpv6(false)
.deleteMode("string")
.description("string")
.device("string")
.ipv4RouteTargetExportStitchings(VrfIpv4RouteTargetExportStitchingArgs.builder()
.value("string")
.stitching(false)
.build())
.ipv4RouteTargetExports(VrfIpv4RouteTargetExportArgs.builder()
.value("string")
.build())
.ipv4RouteTargetImportStitchings(VrfIpv4RouteTargetImportStitchingArgs.builder()
.value("string")
.stitching(false)
.build())
.ipv4RouteTargetImports(VrfIpv4RouteTargetImportArgs.builder()
.value("string")
.build())
.ipv6RouteTargetExportStitchings(VrfIpv6RouteTargetExportStitchingArgs.builder()
.value("string")
.stitching(false)
.build())
.ipv6RouteTargetExports(VrfIpv6RouteTargetExportArgs.builder()
.value("string")
.build())
.ipv6RouteTargetImportStitchings(VrfIpv6RouteTargetImportStitchingArgs.builder()
.value("string")
.stitching(false)
.build())
.ipv6RouteTargetImports(VrfIpv6RouteTargetImportArgs.builder()
.value("string")
.build())
.name("string")
.rd("string")
.routeTargetExports(VrfRouteTargetExportArgs.builder()
.value("string")
.stitching(false)
.build())
.routeTargetImports(VrfRouteTargetImportArgs.builder()
.value("string")
.stitching(false)
.build())
.vpnId("string")
.build());
vrf_resource = iosxe.Vrf("vrfResource",
address_family_ipv4=False,
address_family_ipv6=False,
delete_mode="string",
description="string",
device="string",
ipv4_route_target_export_stitchings=[iosxe.VrfIpv4RouteTargetExportStitchingArgs(
value="string",
stitching=False,
)],
ipv4_route_target_exports=[iosxe.VrfIpv4RouteTargetExportArgs(
value="string",
)],
ipv4_route_target_import_stitchings=[iosxe.VrfIpv4RouteTargetImportStitchingArgs(
value="string",
stitching=False,
)],
ipv4_route_target_imports=[iosxe.VrfIpv4RouteTargetImportArgs(
value="string",
)],
ipv6_route_target_export_stitchings=[iosxe.VrfIpv6RouteTargetExportStitchingArgs(
value="string",
stitching=False,
)],
ipv6_route_target_exports=[iosxe.VrfIpv6RouteTargetExportArgs(
value="string",
)],
ipv6_route_target_import_stitchings=[iosxe.VrfIpv6RouteTargetImportStitchingArgs(
value="string",
stitching=False,
)],
ipv6_route_target_imports=[iosxe.VrfIpv6RouteTargetImportArgs(
value="string",
)],
name="string",
rd="string",
route_target_exports=[iosxe.VrfRouteTargetExportArgs(
value="string",
stitching=False,
)],
route_target_imports=[iosxe.VrfRouteTargetImportArgs(
value="string",
stitching=False,
)],
vpn_id="string")
const vrfResource = new iosxe.Vrf("vrfResource", {
addressFamilyIpv4: false,
addressFamilyIpv6: false,
deleteMode: "string",
description: "string",
device: "string",
ipv4RouteTargetExportStitchings: [{
value: "string",
stitching: false,
}],
ipv4RouteTargetExports: [{
value: "string",
}],
ipv4RouteTargetImportStitchings: [{
value: "string",
stitching: false,
}],
ipv4RouteTargetImports: [{
value: "string",
}],
ipv6RouteTargetExportStitchings: [{
value: "string",
stitching: false,
}],
ipv6RouteTargetExports: [{
value: "string",
}],
ipv6RouteTargetImportStitchings: [{
value: "string",
stitching: false,
}],
ipv6RouteTargetImports: [{
value: "string",
}],
name: "string",
rd: "string",
routeTargetExports: [{
value: "string",
stitching: false,
}],
routeTargetImports: [{
value: "string",
stitching: false,
}],
vpnId: "string",
});
type: iosxe:Vrf
properties:
addressFamilyIpv4: false
addressFamilyIpv6: false
deleteMode: string
description: string
device: string
ipv4RouteTargetExportStitchings:
- stitching: false
value: string
ipv4RouteTargetExports:
- value: string
ipv4RouteTargetImportStitchings:
- stitching: false
value: string
ipv4RouteTargetImports:
- value: string
ipv6RouteTargetExportStitchings:
- stitching: false
value: string
ipv6RouteTargetExports:
- value: string
ipv6RouteTargetImportStitchings:
- stitching: false
value: string
ipv6RouteTargetImports:
- value: string
name: string
rd: string
routeTargetExports:
- stitching: false
value: string
routeTargetImports:
- stitching: false
value: string
vpnId: string
Vrf Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Vrf resource accepts the following input properties:
- Address
Family boolIpv4 - Address family
- Address
Family boolIpv6 - Address family
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Description string
- VRF specific description
- Device string
- A device name from the provider configuration.
- Ipv4Route
Target List<Lbrlabs.Export Stitchings Pulumi Package. Iosxe. Inputs. Vrf Ipv4Route Target Export Stitching> - Export Target-VPN community
- Ipv4Route
Target List<Lbrlabs.Exports Pulumi Package. Iosxe. Inputs. Vrf Ipv4Route Target Export> - Export Target-VPN community
- Ipv4Route
Target List<Lbrlabs.Import Stitchings Pulumi Package. Iosxe. Inputs. Vrf Ipv4Route Target Import Stitching> - Import Target-VPN community
- Ipv4Route
Target List<Lbrlabs.Imports Pulumi Package. Iosxe. Inputs. Vrf Ipv4Route Target Import> - Import Target-VPN community
- Ipv6Route
Target List<Lbrlabs.Export Stitchings Pulumi Package. Iosxe. Inputs. Vrf Ipv6Route Target Export Stitching> - Export Target-VPN community
- Ipv6Route
Target List<Lbrlabs.Exports Pulumi Package. Iosxe. Inputs. Vrf Ipv6Route Target Export> - Export Target-VPN community
- Ipv6Route
Target List<Lbrlabs.Import Stitchings Pulumi Package. Iosxe. Inputs. Vrf Ipv6Route Target Import Stitching> - Import Target-VPN community
- Ipv6Route
Target List<Lbrlabs.Imports Pulumi Package. Iosxe. Inputs. Vrf Ipv6Route Target Import> - Import Target-VPN community
- Name string
- WORD;;VRF name
- Rd string
- Specify Route Distinguisher
- Route
Target List<Lbrlabs.Exports Pulumi Package. Iosxe. Inputs. Vrf Route Target Export> - Export Target-VPN community
- Route
Target List<Lbrlabs.Imports Pulumi Package. Iosxe. Inputs. Vrf Route Target Import> - Import Target-VPN community
- Vpn
Id string - Configure VPN ID in rfc2685 format
- Address
Family boolIpv4 - Address family
- Address
Family boolIpv6 - Address family
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Description string
- VRF specific description
- Device string
- A device name from the provider configuration.
- Ipv4Route
Target []VrfExport Stitchings Ipv4Route Target Export Stitching Args - Export Target-VPN community
- Ipv4Route
Target []VrfExports Ipv4Route Target Export Args - Export Target-VPN community
- Ipv4Route
Target []VrfImport Stitchings Ipv4Route Target Import Stitching Args - Import Target-VPN community
- Ipv4Route
Target []VrfImports Ipv4Route Target Import Args - Import Target-VPN community
- Ipv6Route
Target []VrfExport Stitchings Ipv6Route Target Export Stitching Args - Export Target-VPN community
- Ipv6Route
Target []VrfExports Ipv6Route Target Export Args - Export Target-VPN community
- Ipv6Route
Target []VrfImport Stitchings Ipv6Route Target Import Stitching Args - Import Target-VPN community
- Ipv6Route
Target []VrfImports Ipv6Route Target Import Args - Import Target-VPN community
- Name string
- WORD;;VRF name
- Rd string
- Specify Route Distinguisher
- Route
Target []VrfExports Route Target Export Args - Export Target-VPN community
- Route
Target []VrfImports Route Target Import Args - Import Target-VPN community
- Vpn
Id string - Configure VPN ID in rfc2685 format
- address
Family BooleanIpv4 - Address family
- address
Family BooleanIpv6 - Address family
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- description String
- VRF specific description
- device String
- A device name from the provider configuration.
- ipv4Route
Target List<VrfExport Stitchings Ipv4Route Target Export Stitching> - Export Target-VPN community
- ipv4Route
Target List<VrfExports Ipv4Route Target Export> - Export Target-VPN community
- ipv4Route
Target List<VrfImport Stitchings Ipv4Route Target Import Stitching> - Import Target-VPN community
- ipv4Route
Target List<VrfImports Ipv4Route Target Import> - Import Target-VPN community
- ipv6Route
Target List<VrfExport Stitchings Ipv6Route Target Export Stitching> - Export Target-VPN community
- ipv6Route
Target List<VrfExports Ipv6Route Target Export> - Export Target-VPN community
- ipv6Route
Target List<VrfImport Stitchings Ipv6Route Target Import Stitching> - Import Target-VPN community
- ipv6Route
Target List<VrfImports Ipv6Route Target Import> - Import Target-VPN community
- name String
- WORD;;VRF name
- rd String
- Specify Route Distinguisher
- route
Target List<VrfExports Route Target Export> - Export Target-VPN community
- route
Target List<VrfImports Route Target Import> - Import Target-VPN community
- vpn
Id String - Configure VPN ID in rfc2685 format
- address
Family booleanIpv4 - Address family
- address
Family booleanIpv6 - Address family
- delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- description string
- VRF specific description
- device string
- A device name from the provider configuration.
- ipv4Route
Target VrfExport Stitchings Ipv4Route Target Export Stitching[] - Export Target-VPN community
- ipv4Route
Target VrfExports Ipv4Route Target Export[] - Export Target-VPN community
- ipv4Route
Target VrfImport Stitchings Ipv4Route Target Import Stitching[] - Import Target-VPN community
- ipv4Route
Target VrfImports Ipv4Route Target Import[] - Import Target-VPN community
- ipv6Route
Target VrfExport Stitchings Ipv6Route Target Export Stitching[] - Export Target-VPN community
- ipv6Route
Target VrfExports Ipv6Route Target Export[] - Export Target-VPN community
- ipv6Route
Target VrfImport Stitchings Ipv6Route Target Import Stitching[] - Import Target-VPN community
- ipv6Route
Target VrfImports Ipv6Route Target Import[] - Import Target-VPN community
- name string
- WORD;;VRF name
- rd string
- Specify Route Distinguisher
- route
Target VrfExports Route Target Export[] - Export Target-VPN community
- route
Target VrfImports Route Target Import[] - Import Target-VPN community
- vpn
Id string - Configure VPN ID in rfc2685 format
- address_
family_ boolipv4 - Address family
- address_
family_ boolipv6 - Address family
- delete_
mode str - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- description str
- VRF specific description
- device str
- A device name from the provider configuration.
- ipv4_
route_ Sequence[Vrftarget_ export_ stitchings Ipv4Route Target Export Stitching Args] - Export Target-VPN community
- ipv4_
route_ Sequence[Vrftarget_ exports Ipv4Route Target Export Args] - Export Target-VPN community
- ipv4_
route_ Sequence[Vrftarget_ import_ stitchings Ipv4Route Target Import Stitching Args] - Import Target-VPN community
- ipv4_
route_ Sequence[Vrftarget_ imports Ipv4Route Target Import Args] - Import Target-VPN community
- ipv6_
route_ Sequence[Vrftarget_ export_ stitchings Ipv6Route Target Export Stitching Args] - Export Target-VPN community
- ipv6_
route_ Sequence[Vrftarget_ exports Ipv6Route Target Export Args] - Export Target-VPN community
- ipv6_
route_ Sequence[Vrftarget_ import_ stitchings Ipv6Route Target Import Stitching Args] - Import Target-VPN community
- ipv6_
route_ Sequence[Vrftarget_ imports Ipv6Route Target Import Args] - Import Target-VPN community
- name str
- WORD;;VRF name
- rd str
- Specify Route Distinguisher
- route_
target_ Sequence[Vrfexports Route Target Export Args] - Export Target-VPN community
- route_
target_ Sequence[Vrfimports Route Target Import Args] - Import Target-VPN community
- vpn_
id str - Configure VPN ID in rfc2685 format
- address
Family BooleanIpv4 - Address family
- address
Family BooleanIpv6 - Address family
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- description String
- VRF specific description
- device String
- A device name from the provider configuration.
- ipv4Route
Target List<Property Map>Export Stitchings - Export Target-VPN community
- ipv4Route
Target List<Property Map>Exports - Export Target-VPN community
- ipv4Route
Target List<Property Map>Import Stitchings - Import Target-VPN community
- ipv4Route
Target List<Property Map>Imports - Import Target-VPN community
- ipv6Route
Target List<Property Map>Export Stitchings - Export Target-VPN community
- ipv6Route
Target List<Property Map>Exports - Export Target-VPN community
- ipv6Route
Target List<Property Map>Import Stitchings - Import Target-VPN community
- ipv6Route
Target List<Property Map>Imports - Import Target-VPN community
- name String
- WORD;;VRF name
- rd String
- Specify Route Distinguisher
- route
Target List<Property Map>Exports - Export Target-VPN community
- route
Target List<Property Map>Imports - Import Target-VPN community
- vpn
Id String - Configure VPN ID in rfc2685 format
Outputs
All input properties are implicitly available as output properties. Additionally, the Vrf resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Vrf Resource
Get an existing Vrf resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VrfState, opts?: CustomResourceOptions): Vrf
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address_family_ipv4: Optional[bool] = None,
address_family_ipv6: Optional[bool] = None,
delete_mode: Optional[str] = None,
description: Optional[str] = None,
device: Optional[str] = None,
ipv4_route_target_export_stitchings: Optional[Sequence[VrfIpv4RouteTargetExportStitchingArgs]] = None,
ipv4_route_target_exports: Optional[Sequence[VrfIpv4RouteTargetExportArgs]] = None,
ipv4_route_target_import_stitchings: Optional[Sequence[VrfIpv4RouteTargetImportStitchingArgs]] = None,
ipv4_route_target_imports: Optional[Sequence[VrfIpv4RouteTargetImportArgs]] = None,
ipv6_route_target_export_stitchings: Optional[Sequence[VrfIpv6RouteTargetExportStitchingArgs]] = None,
ipv6_route_target_exports: Optional[Sequence[VrfIpv6RouteTargetExportArgs]] = None,
ipv6_route_target_import_stitchings: Optional[Sequence[VrfIpv6RouteTargetImportStitchingArgs]] = None,
ipv6_route_target_imports: Optional[Sequence[VrfIpv6RouteTargetImportArgs]] = None,
name: Optional[str] = None,
rd: Optional[str] = None,
route_target_exports: Optional[Sequence[VrfRouteTargetExportArgs]] = None,
route_target_imports: Optional[Sequence[VrfRouteTargetImportArgs]] = None,
vpn_id: Optional[str] = None) -> Vrf
func GetVrf(ctx *Context, name string, id IDInput, state *VrfState, opts ...ResourceOption) (*Vrf, error)
public static Vrf Get(string name, Input<string> id, VrfState? state, CustomResourceOptions? opts = null)
public static Vrf get(String name, Output<String> id, VrfState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Address
Family boolIpv4 - Address family
- Address
Family boolIpv6 - Address family
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Description string
- VRF specific description
- Device string
- A device name from the provider configuration.
- Ipv4Route
Target List<Lbrlabs.Export Stitchings Pulumi Package. Iosxe. Inputs. Vrf Ipv4Route Target Export Stitching> - Export Target-VPN community
- Ipv4Route
Target List<Lbrlabs.Exports Pulumi Package. Iosxe. Inputs. Vrf Ipv4Route Target Export> - Export Target-VPN community
- Ipv4Route
Target List<Lbrlabs.Import Stitchings Pulumi Package. Iosxe. Inputs. Vrf Ipv4Route Target Import Stitching> - Import Target-VPN community
- Ipv4Route
Target List<Lbrlabs.Imports Pulumi Package. Iosxe. Inputs. Vrf Ipv4Route Target Import> - Import Target-VPN community
- Ipv6Route
Target List<Lbrlabs.Export Stitchings Pulumi Package. Iosxe. Inputs. Vrf Ipv6Route Target Export Stitching> - Export Target-VPN community
- Ipv6Route
Target List<Lbrlabs.Exports Pulumi Package. Iosxe. Inputs. Vrf Ipv6Route Target Export> - Export Target-VPN community
- Ipv6Route
Target List<Lbrlabs.Import Stitchings Pulumi Package. Iosxe. Inputs. Vrf Ipv6Route Target Import Stitching> - Import Target-VPN community
- Ipv6Route
Target List<Lbrlabs.Imports Pulumi Package. Iosxe. Inputs. Vrf Ipv6Route Target Import> - Import Target-VPN community
- Name string
- WORD;;VRF name
- Rd string
- Specify Route Distinguisher
- Route
Target List<Lbrlabs.Exports Pulumi Package. Iosxe. Inputs. Vrf Route Target Export> - Export Target-VPN community
- Route
Target List<Lbrlabs.Imports Pulumi Package. Iosxe. Inputs. Vrf Route Target Import> - Import Target-VPN community
- Vpn
Id string - Configure VPN ID in rfc2685 format
- Address
Family boolIpv4 - Address family
- Address
Family boolIpv6 - Address family
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Description string
- VRF specific description
- Device string
- A device name from the provider configuration.
- Ipv4Route
Target []VrfExport Stitchings Ipv4Route Target Export Stitching Args - Export Target-VPN community
- Ipv4Route
Target []VrfExports Ipv4Route Target Export Args - Export Target-VPN community
- Ipv4Route
Target []VrfImport Stitchings Ipv4Route Target Import Stitching Args - Import Target-VPN community
- Ipv4Route
Target []VrfImports Ipv4Route Target Import Args - Import Target-VPN community
- Ipv6Route
Target []VrfExport Stitchings Ipv6Route Target Export Stitching Args - Export Target-VPN community
- Ipv6Route
Target []VrfExports Ipv6Route Target Export Args - Export Target-VPN community
- Ipv6Route
Target []VrfImport Stitchings Ipv6Route Target Import Stitching Args - Import Target-VPN community
- Ipv6Route
Target []VrfImports Ipv6Route Target Import Args - Import Target-VPN community
- Name string
- WORD;;VRF name
- Rd string
- Specify Route Distinguisher
- Route
Target []VrfExports Route Target Export Args - Export Target-VPN community
- Route
Target []VrfImports Route Target Import Args - Import Target-VPN community
- Vpn
Id string - Configure VPN ID in rfc2685 format
- address
Family BooleanIpv4 - Address family
- address
Family BooleanIpv6 - Address family
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- description String
- VRF specific description
- device String
- A device name from the provider configuration.
- ipv4Route
Target List<VrfExport Stitchings Ipv4Route Target Export Stitching> - Export Target-VPN community
- ipv4Route
Target List<VrfExports Ipv4Route Target Export> - Export Target-VPN community
- ipv4Route
Target List<VrfImport Stitchings Ipv4Route Target Import Stitching> - Import Target-VPN community
- ipv4Route
Target List<VrfImports Ipv4Route Target Import> - Import Target-VPN community
- ipv6Route
Target List<VrfExport Stitchings Ipv6Route Target Export Stitching> - Export Target-VPN community
- ipv6Route
Target List<VrfExports Ipv6Route Target Export> - Export Target-VPN community
- ipv6Route
Target List<VrfImport Stitchings Ipv6Route Target Import Stitching> - Import Target-VPN community
- ipv6Route
Target List<VrfImports Ipv6Route Target Import> - Import Target-VPN community
- name String
- WORD;;VRF name
- rd String
- Specify Route Distinguisher
- route
Target List<VrfExports Route Target Export> - Export Target-VPN community
- route
Target List<VrfImports Route Target Import> - Import Target-VPN community
- vpn
Id String - Configure VPN ID in rfc2685 format
- address
Family booleanIpv4 - Address family
- address
Family booleanIpv6 - Address family
- delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- description string
- VRF specific description
- device string
- A device name from the provider configuration.
- ipv4Route
Target VrfExport Stitchings Ipv4Route Target Export Stitching[] - Export Target-VPN community
- ipv4Route
Target VrfExports Ipv4Route Target Export[] - Export Target-VPN community
- ipv4Route
Target VrfImport Stitchings Ipv4Route Target Import Stitching[] - Import Target-VPN community
- ipv4Route
Target VrfImports Ipv4Route Target Import[] - Import Target-VPN community
- ipv6Route
Target VrfExport Stitchings Ipv6Route Target Export Stitching[] - Export Target-VPN community
- ipv6Route
Target VrfExports Ipv6Route Target Export[] - Export Target-VPN community
- ipv6Route
Target VrfImport Stitchings Ipv6Route Target Import Stitching[] - Import Target-VPN community
- ipv6Route
Target VrfImports Ipv6Route Target Import[] - Import Target-VPN community
- name string
- WORD;;VRF name
- rd string
- Specify Route Distinguisher
- route
Target VrfExports Route Target Export[] - Export Target-VPN community
- route
Target VrfImports Route Target Import[] - Import Target-VPN community
- vpn
Id string - Configure VPN ID in rfc2685 format
- address_
family_ boolipv4 - Address family
- address_
family_ boolipv6 - Address family
- delete_
mode str - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- description str
- VRF specific description
- device str
- A device name from the provider configuration.
- ipv4_
route_ Sequence[Vrftarget_ export_ stitchings Ipv4Route Target Export Stitching Args] - Export Target-VPN community
- ipv4_
route_ Sequence[Vrftarget_ exports Ipv4Route Target Export Args] - Export Target-VPN community
- ipv4_
route_ Sequence[Vrftarget_ import_ stitchings Ipv4Route Target Import Stitching Args] - Import Target-VPN community
- ipv4_
route_ Sequence[Vrftarget_ imports Ipv4Route Target Import Args] - Import Target-VPN community
- ipv6_
route_ Sequence[Vrftarget_ export_ stitchings Ipv6Route Target Export Stitching Args] - Export Target-VPN community
- ipv6_
route_ Sequence[Vrftarget_ exports Ipv6Route Target Export Args] - Export Target-VPN community
- ipv6_
route_ Sequence[Vrftarget_ import_ stitchings Ipv6Route Target Import Stitching Args] - Import Target-VPN community
- ipv6_
route_ Sequence[Vrftarget_ imports Ipv6Route Target Import Args] - Import Target-VPN community
- name str
- WORD;;VRF name
- rd str
- Specify Route Distinguisher
- route_
target_ Sequence[Vrfexports Route Target Export Args] - Export Target-VPN community
- route_
target_ Sequence[Vrfimports Route Target Import Args] - Import Target-VPN community
- vpn_
id str - Configure VPN ID in rfc2685 format
- address
Family BooleanIpv4 - Address family
- address
Family BooleanIpv6 - Address family
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- description String
- VRF specific description
- device String
- A device name from the provider configuration.
- ipv4Route
Target List<Property Map>Export Stitchings - Export Target-VPN community
- ipv4Route
Target List<Property Map>Exports - Export Target-VPN community
- ipv4Route
Target List<Property Map>Import Stitchings - Import Target-VPN community
- ipv4Route
Target List<Property Map>Imports - Import Target-VPN community
- ipv6Route
Target List<Property Map>Export Stitchings - Export Target-VPN community
- ipv6Route
Target List<Property Map>Exports - Export Target-VPN community
- ipv6Route
Target List<Property Map>Import Stitchings - Import Target-VPN community
- ipv6Route
Target List<Property Map>Imports - Import Target-VPN community
- name String
- WORD;;VRF name
- rd String
- Specify Route Distinguisher
- route
Target List<Property Map>Exports - Export Target-VPN community
- route
Target List<Property Map>Imports - Import Target-VPN community
- vpn
Id String - Configure VPN ID in rfc2685 format
Supporting Types
VrfIpv4RouteTargetExport, VrfIpv4RouteTargetExportArgs
- Value string
- Value string
- value String
- value string
- value str
- value String
VrfIpv4RouteTargetExportStitching, VrfIpv4RouteTargetExportStitchingArgs
VrfIpv4RouteTargetImport, VrfIpv4RouteTargetImportArgs
- Value string
- Value string
- value String
- value string
- value str
- value String
VrfIpv4RouteTargetImportStitching, VrfIpv4RouteTargetImportStitchingArgs
VrfIpv6RouteTargetExport, VrfIpv6RouteTargetExportArgs
- Value string
- Value string
- value String
- value string
- value str
- value String
VrfIpv6RouteTargetExportStitching, VrfIpv6RouteTargetExportStitchingArgs
VrfIpv6RouteTargetImport, VrfIpv6RouteTargetImportArgs
- Value string
- Value string
- value String
- value string
- value str
- value String
VrfIpv6RouteTargetImportStitching, VrfIpv6RouteTargetImportStitchingArgs
VrfRouteTargetExport, VrfRouteTargetExportArgs
VrfRouteTargetImport, VrfRouteTargetImportArgs
Import
$ pulumi import iosxe:index/vrf:Vrf example "Cisco-IOS-XE-native:native/vrf/definition=VRF22"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- iosxe lbrlabs/pulumi-iosxe
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
iosxe
Terraform Provider.