1. Packages
  2. Cisco IOS XE Resource Provider
  3. API Docs
  4. EvpnInstance
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

iosxe.EvpnInstance

Explore with Pulumi AI

iosxe logo
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

    This resource can manage the EVPN Instance 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.EvpnInstance("example", new()
        {
            EvpnInstanceNum = 10,
            VlanBasedAutoRouteTarget = false,
            VlanBasedDefaultGatewayAdvertise = "enable",
            VlanBasedEncapsulation = "vxlan",
            VlanBasedIpLocalLearningDisable = false,
            VlanBasedIpLocalLearningEnable = true,
            VlanBasedRd = "10:10",
            VlanBasedReOriginateRouteType5 = true,
            VlanBasedReplicationTypeIngress = false,
            VlanBasedReplicationTypeMp2mp = false,
            VlanBasedReplicationTypeP2mp = false,
            VlanBasedReplicationTypeStatic = true,
            VlanBasedRouteTarget = "10:10",
            VlanBasedRouteTargetBoth = "10:10",
            VlanBasedRouteTargetExport = "10:10",
            VlanBasedRouteTargetImport = "10:10",
        });
    
    });
    
    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.NewEvpnInstance(ctx, "example", &iosxe.EvpnInstanceArgs{
    			EvpnInstanceNum:                  pulumi.Int(10),
    			VlanBasedAutoRouteTarget:         pulumi.Bool(false),
    			VlanBasedDefaultGatewayAdvertise: pulumi.String("enable"),
    			VlanBasedEncapsulation:           pulumi.String("vxlan"),
    			VlanBasedIpLocalLearningDisable:  pulumi.Bool(false),
    			VlanBasedIpLocalLearningEnable:   pulumi.Bool(true),
    			VlanBasedRd:                      pulumi.String("10:10"),
    			VlanBasedReOriginateRouteType5:   pulumi.Bool(true),
    			VlanBasedReplicationTypeIngress:  pulumi.Bool(false),
    			VlanBasedReplicationTypeMp2mp:    pulumi.Bool(false),
    			VlanBasedReplicationTypeP2mp:     pulumi.Bool(false),
    			VlanBasedReplicationTypeStatic:   pulumi.Bool(true),
    			VlanBasedRouteTarget:             pulumi.String("10:10"),
    			VlanBasedRouteTargetBoth:         pulumi.String("10:10"),
    			VlanBasedRouteTargetExport:       pulumi.String("10:10"),
    			VlanBasedRouteTargetImport:       pulumi.String("10:10"),
    		})
    		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.EvpnInstance;
    import com.pulumi.iosxe.EvpnInstanceArgs;
    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 EvpnInstance("example", EvpnInstanceArgs.builder()        
                .evpnInstanceNum(10)
                .vlanBasedAutoRouteTarget(false)
                .vlanBasedDefaultGatewayAdvertise("enable")
                .vlanBasedEncapsulation("vxlan")
                .vlanBasedIpLocalLearningDisable(false)
                .vlanBasedIpLocalLearningEnable(true)
                .vlanBasedRd("10:10")
                .vlanBasedReOriginateRouteType5(true)
                .vlanBasedReplicationTypeIngress(false)
                .vlanBasedReplicationTypeMp2mp(false)
                .vlanBasedReplicationTypeP2mp(false)
                .vlanBasedReplicationTypeStatic(true)
                .vlanBasedRouteTarget("10:10")
                .vlanBasedRouteTargetBoth("10:10")
                .vlanBasedRouteTargetExport("10:10")
                .vlanBasedRouteTargetImport("10:10")
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_iosxe as iosxe
    
    example = iosxe.EvpnInstance("example",
        evpn_instance_num=10,
        vlan_based_auto_route_target=False,
        vlan_based_default_gateway_advertise="enable",
        vlan_based_encapsulation="vxlan",
        vlan_based_ip_local_learning_disable=False,
        vlan_based_ip_local_learning_enable=True,
        vlan_based_rd="10:10",
        vlan_based_re_originate_route_type5=True,
        vlan_based_replication_type_ingress=False,
        vlan_based_replication_type_mp2mp=False,
        vlan_based_replication_type_p2mp=False,
        vlan_based_replication_type_static=True,
        vlan_based_route_target="10:10",
        vlan_based_route_target_both="10:10",
        vlan_based_route_target_export="10:10",
        vlan_based_route_target_import="10:10")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@lbrlabs/pulumi-iosxe";
    
    const example = new iosxe.EvpnInstance("example", {
        evpnInstanceNum: 10,
        vlanBasedAutoRouteTarget: false,
        vlanBasedDefaultGatewayAdvertise: "enable",
        vlanBasedEncapsulation: "vxlan",
        vlanBasedIpLocalLearningDisable: false,
        vlanBasedIpLocalLearningEnable: true,
        vlanBasedRd: "10:10",
        vlanBasedReOriginateRouteType5: true,
        vlanBasedReplicationTypeIngress: false,
        vlanBasedReplicationTypeMp2mp: false,
        vlanBasedReplicationTypeP2mp: false,
        vlanBasedReplicationTypeStatic: true,
        vlanBasedRouteTarget: "10:10",
        vlanBasedRouteTargetBoth: "10:10",
        vlanBasedRouteTargetExport: "10:10",
        vlanBasedRouteTargetImport: "10:10",
    });
    
    resources:
      example:
        type: iosxe:EvpnInstance
        properties:
          evpnInstanceNum: 10
          vlanBasedAutoRouteTarget: false
          vlanBasedDefaultGatewayAdvertise: enable
          vlanBasedEncapsulation: vxlan
          vlanBasedIpLocalLearningDisable: false
          vlanBasedIpLocalLearningEnable: true
          vlanBasedRd: 10:10
          vlanBasedReOriginateRouteType5: true
          vlanBasedReplicationTypeIngress: false
          vlanBasedReplicationTypeMp2mp: false
          vlanBasedReplicationTypeP2mp: false
          vlanBasedReplicationTypeStatic: true
          vlanBasedRouteTarget: 10:10
          vlanBasedRouteTargetBoth: 10:10
          vlanBasedRouteTargetExport: 10:10
          vlanBasedRouteTargetImport: 10:10
    

    Create EvpnInstance Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EvpnInstance(name: string, args: EvpnInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def EvpnInstance(resource_name: str,
                     args: EvpnInstanceArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def EvpnInstance(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     evpn_instance_num: Optional[int] = None,
                     vlan_based_re_originate_route_type5: Optional[bool] = None,
                     vlan_based_rd: Optional[str] = None,
                     vlan_based_default_gateway_advertise: Optional[str] = None,
                     vlan_based_encapsulation: Optional[str] = None,
                     vlan_based_replication_type_ingress: Optional[bool] = None,
                     vlan_based_ip_local_learning_enable: Optional[bool] = None,
                     vlan_based_auto_route_target: Optional[bool] = None,
                     device: Optional[str] = None,
                     vlan_based_ip_local_learning_disable: Optional[bool] = None,
                     vlan_based_replication_type_mp2mp: Optional[bool] = None,
                     vlan_based_replication_type_p2mp: Optional[bool] = None,
                     vlan_based_replication_type_static: Optional[bool] = None,
                     vlan_based_route_target: Optional[str] = None,
                     vlan_based_route_target_both: Optional[str] = None,
                     vlan_based_route_target_export: Optional[str] = None,
                     vlan_based_route_target_import: Optional[str] = None)
    func NewEvpnInstance(ctx *Context, name string, args EvpnInstanceArgs, opts ...ResourceOption) (*EvpnInstance, error)
    public EvpnInstance(string name, EvpnInstanceArgs args, CustomResourceOptions? opts = null)
    public EvpnInstance(String name, EvpnInstanceArgs args)
    public EvpnInstance(String name, EvpnInstanceArgs args, CustomResourceOptions options)
    
    type: iosxe:EvpnInstance
    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 EvpnInstanceArgs
    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 EvpnInstanceArgs
    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 EvpnInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EvpnInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EvpnInstanceArgs
    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 evpnInstanceResource = new Iosxe.EvpnInstance("evpnInstanceResource", new()
    {
        EvpnInstanceNum = 0,
        VlanBasedReOriginateRouteType5 = false,
        VlanBasedRd = "string",
        VlanBasedDefaultGatewayAdvertise = "string",
        VlanBasedEncapsulation = "string",
        VlanBasedReplicationTypeIngress = false,
        VlanBasedIpLocalLearningEnable = false,
        VlanBasedAutoRouteTarget = false,
        Device = "string",
        VlanBasedIpLocalLearningDisable = false,
        VlanBasedReplicationTypeMp2mp = false,
        VlanBasedReplicationTypeP2mp = false,
        VlanBasedReplicationTypeStatic = false,
        VlanBasedRouteTarget = "string",
        VlanBasedRouteTargetBoth = "string",
        VlanBasedRouteTargetExport = "string",
        VlanBasedRouteTargetImport = "string",
    });
    
    example, err := iosxe.NewEvpnInstance(ctx, "evpnInstanceResource", &iosxe.EvpnInstanceArgs{
    	EvpnInstanceNum:                  pulumi.Int(0),
    	VlanBasedReOriginateRouteType5:   pulumi.Bool(false),
    	VlanBasedRd:                      pulumi.String("string"),
    	VlanBasedDefaultGatewayAdvertise: pulumi.String("string"),
    	VlanBasedEncapsulation:           pulumi.String("string"),
    	VlanBasedReplicationTypeIngress:  pulumi.Bool(false),
    	VlanBasedIpLocalLearningEnable:   pulumi.Bool(false),
    	VlanBasedAutoRouteTarget:         pulumi.Bool(false),
    	Device:                           pulumi.String("string"),
    	VlanBasedIpLocalLearningDisable:  pulumi.Bool(false),
    	VlanBasedReplicationTypeMp2mp:    pulumi.Bool(false),
    	VlanBasedReplicationTypeP2mp:     pulumi.Bool(false),
    	VlanBasedReplicationTypeStatic:   pulumi.Bool(false),
    	VlanBasedRouteTarget:             pulumi.String("string"),
    	VlanBasedRouteTargetBoth:         pulumi.String("string"),
    	VlanBasedRouteTargetExport:       pulumi.String("string"),
    	VlanBasedRouteTargetImport:       pulumi.String("string"),
    })
    
    var evpnInstanceResource = new EvpnInstance("evpnInstanceResource", EvpnInstanceArgs.builder()
        .evpnInstanceNum(0)
        .vlanBasedReOriginateRouteType5(false)
        .vlanBasedRd("string")
        .vlanBasedDefaultGatewayAdvertise("string")
        .vlanBasedEncapsulation("string")
        .vlanBasedReplicationTypeIngress(false)
        .vlanBasedIpLocalLearningEnable(false)
        .vlanBasedAutoRouteTarget(false)
        .device("string")
        .vlanBasedIpLocalLearningDisable(false)
        .vlanBasedReplicationTypeMp2mp(false)
        .vlanBasedReplicationTypeP2mp(false)
        .vlanBasedReplicationTypeStatic(false)
        .vlanBasedRouteTarget("string")
        .vlanBasedRouteTargetBoth("string")
        .vlanBasedRouteTargetExport("string")
        .vlanBasedRouteTargetImport("string")
        .build());
    
    evpn_instance_resource = iosxe.EvpnInstance("evpnInstanceResource",
        evpn_instance_num=0,
        vlan_based_re_originate_route_type5=False,
        vlan_based_rd="string",
        vlan_based_default_gateway_advertise="string",
        vlan_based_encapsulation="string",
        vlan_based_replication_type_ingress=False,
        vlan_based_ip_local_learning_enable=False,
        vlan_based_auto_route_target=False,
        device="string",
        vlan_based_ip_local_learning_disable=False,
        vlan_based_replication_type_mp2mp=False,
        vlan_based_replication_type_p2mp=False,
        vlan_based_replication_type_static=False,
        vlan_based_route_target="string",
        vlan_based_route_target_both="string",
        vlan_based_route_target_export="string",
        vlan_based_route_target_import="string")
    
    const evpnInstanceResource = new iosxe.EvpnInstance("evpnInstanceResource", {
        evpnInstanceNum: 0,
        vlanBasedReOriginateRouteType5: false,
        vlanBasedRd: "string",
        vlanBasedDefaultGatewayAdvertise: "string",
        vlanBasedEncapsulation: "string",
        vlanBasedReplicationTypeIngress: false,
        vlanBasedIpLocalLearningEnable: false,
        vlanBasedAutoRouteTarget: false,
        device: "string",
        vlanBasedIpLocalLearningDisable: false,
        vlanBasedReplicationTypeMp2mp: false,
        vlanBasedReplicationTypeP2mp: false,
        vlanBasedReplicationTypeStatic: false,
        vlanBasedRouteTarget: "string",
        vlanBasedRouteTargetBoth: "string",
        vlanBasedRouteTargetExport: "string",
        vlanBasedRouteTargetImport: "string",
    });
    
    type: iosxe:EvpnInstance
    properties:
        device: string
        evpnInstanceNum: 0
        vlanBasedAutoRouteTarget: false
        vlanBasedDefaultGatewayAdvertise: string
        vlanBasedEncapsulation: string
        vlanBasedIpLocalLearningDisable: false
        vlanBasedIpLocalLearningEnable: false
        vlanBasedRd: string
        vlanBasedReOriginateRouteType5: false
        vlanBasedReplicationTypeIngress: false
        vlanBasedReplicationTypeMp2mp: false
        vlanBasedReplicationTypeP2mp: false
        vlanBasedReplicationTypeStatic: false
        vlanBasedRouteTarget: string
        vlanBasedRouteTargetBoth: string
        vlanBasedRouteTargetExport: string
        vlanBasedRouteTargetImport: string
    

    EvpnInstance Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The EvpnInstance resource accepts the following input properties:

    EvpnInstanceNum int
    evpn instance number - Range: 1-65535
    Device string
    A device name from the provider configuration.
    VlanBasedAutoRouteTarget bool
    Automatically set a route-target
    VlanBasedDefaultGatewayAdvertise string
    Advertise Default Gateway MAC/IP routes - Choices: disable, enable
    VlanBasedEncapsulation string
    Data encapsulation method - Choices: mpls, vxlan
    VlanBasedIpLocalLearningDisable bool
    Disable IP local learning from dataplane
    VlanBasedIpLocalLearningEnable bool
    Enable IP local learning from dataplane
    VlanBasedRd string
    ASN:nn or IP-address:nn
    VlanBasedReOriginateRouteType5 bool
    Re-originate route-type 5
    VlanBasedReplicationTypeIngress bool
    Ingress replication
    VlanBasedReplicationTypeMp2mp bool
    mp2mp replication
    VlanBasedReplicationTypeP2mp bool
    p2mp replication
    VlanBasedReplicationTypeStatic bool
    Static replication
    VlanBasedRouteTarget string
    ASN:nn or IP-address:nn
    VlanBasedRouteTargetBoth string
    ASN:nn or IP-address:nn
    VlanBasedRouteTargetExport string
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    VlanBasedRouteTargetImport string
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    EvpnInstanceNum int
    evpn instance number - Range: 1-65535
    Device string
    A device name from the provider configuration.
    VlanBasedAutoRouteTarget bool
    Automatically set a route-target
    VlanBasedDefaultGatewayAdvertise string
    Advertise Default Gateway MAC/IP routes - Choices: disable, enable
    VlanBasedEncapsulation string
    Data encapsulation method - Choices: mpls, vxlan
    VlanBasedIpLocalLearningDisable bool
    Disable IP local learning from dataplane
    VlanBasedIpLocalLearningEnable bool
    Enable IP local learning from dataplane
    VlanBasedRd string
    ASN:nn or IP-address:nn
    VlanBasedReOriginateRouteType5 bool
    Re-originate route-type 5
    VlanBasedReplicationTypeIngress bool
    Ingress replication
    VlanBasedReplicationTypeMp2mp bool
    mp2mp replication
    VlanBasedReplicationTypeP2mp bool
    p2mp replication
    VlanBasedReplicationTypeStatic bool
    Static replication
    VlanBasedRouteTarget string
    ASN:nn or IP-address:nn
    VlanBasedRouteTargetBoth string
    ASN:nn or IP-address:nn
    VlanBasedRouteTargetExport string
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    VlanBasedRouteTargetImport string
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    evpnInstanceNum Integer
    evpn instance number - Range: 1-65535
    device String
    A device name from the provider configuration.
    vlanBasedAutoRouteTarget Boolean
    Automatically set a route-target
    vlanBasedDefaultGatewayAdvertise String
    Advertise Default Gateway MAC/IP routes - Choices: disable, enable
    vlanBasedEncapsulation String
    Data encapsulation method - Choices: mpls, vxlan
    vlanBasedIpLocalLearningDisable Boolean
    Disable IP local learning from dataplane
    vlanBasedIpLocalLearningEnable Boolean
    Enable IP local learning from dataplane
    vlanBasedRd String
    ASN:nn or IP-address:nn
    vlanBasedReOriginateRouteType5 Boolean
    Re-originate route-type 5
    vlanBasedReplicationTypeIngress Boolean
    Ingress replication
    vlanBasedReplicationTypeMp2mp Boolean
    mp2mp replication
    vlanBasedReplicationTypeP2mp Boolean
    p2mp replication
    vlanBasedReplicationTypeStatic Boolean
    Static replication
    vlanBasedRouteTarget String
    ASN:nn or IP-address:nn
    vlanBasedRouteTargetBoth String
    ASN:nn or IP-address:nn
    vlanBasedRouteTargetExport String
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    vlanBasedRouteTargetImport String
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    evpnInstanceNum number
    evpn instance number - Range: 1-65535
    device string
    A device name from the provider configuration.
    vlanBasedAutoRouteTarget boolean
    Automatically set a route-target
    vlanBasedDefaultGatewayAdvertise string
    Advertise Default Gateway MAC/IP routes - Choices: disable, enable
    vlanBasedEncapsulation string
    Data encapsulation method - Choices: mpls, vxlan
    vlanBasedIpLocalLearningDisable boolean
    Disable IP local learning from dataplane
    vlanBasedIpLocalLearningEnable boolean
    Enable IP local learning from dataplane
    vlanBasedRd string
    ASN:nn or IP-address:nn
    vlanBasedReOriginateRouteType5 boolean
    Re-originate route-type 5
    vlanBasedReplicationTypeIngress boolean
    Ingress replication
    vlanBasedReplicationTypeMp2mp boolean
    mp2mp replication
    vlanBasedReplicationTypeP2mp boolean
    p2mp replication
    vlanBasedReplicationTypeStatic boolean
    Static replication
    vlanBasedRouteTarget string
    ASN:nn or IP-address:nn
    vlanBasedRouteTargetBoth string
    ASN:nn or IP-address:nn
    vlanBasedRouteTargetExport string
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    vlanBasedRouteTargetImport string
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    evpn_instance_num int
    evpn instance number - Range: 1-65535
    device str
    A device name from the provider configuration.
    vlan_based_auto_route_target bool
    Automatically set a route-target
    vlan_based_default_gateway_advertise str
    Advertise Default Gateway MAC/IP routes - Choices: disable, enable
    vlan_based_encapsulation str
    Data encapsulation method - Choices: mpls, vxlan
    vlan_based_ip_local_learning_disable bool
    Disable IP local learning from dataplane
    vlan_based_ip_local_learning_enable bool
    Enable IP local learning from dataplane
    vlan_based_rd str
    ASN:nn or IP-address:nn
    vlan_based_re_originate_route_type5 bool
    Re-originate route-type 5
    vlan_based_replication_type_ingress bool
    Ingress replication
    vlan_based_replication_type_mp2mp bool
    mp2mp replication
    vlan_based_replication_type_p2mp bool
    p2mp replication
    vlan_based_replication_type_static bool
    Static replication
    vlan_based_route_target str
    ASN:nn or IP-address:nn
    vlan_based_route_target_both str
    ASN:nn or IP-address:nn
    vlan_based_route_target_export str
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    vlan_based_route_target_import str
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    evpnInstanceNum Number
    evpn instance number - Range: 1-65535
    device String
    A device name from the provider configuration.
    vlanBasedAutoRouteTarget Boolean
    Automatically set a route-target
    vlanBasedDefaultGatewayAdvertise String
    Advertise Default Gateway MAC/IP routes - Choices: disable, enable
    vlanBasedEncapsulation String
    Data encapsulation method - Choices: mpls, vxlan
    vlanBasedIpLocalLearningDisable Boolean
    Disable IP local learning from dataplane
    vlanBasedIpLocalLearningEnable Boolean
    Enable IP local learning from dataplane
    vlanBasedRd String
    ASN:nn or IP-address:nn
    vlanBasedReOriginateRouteType5 Boolean
    Re-originate route-type 5
    vlanBasedReplicationTypeIngress Boolean
    Ingress replication
    vlanBasedReplicationTypeMp2mp Boolean
    mp2mp replication
    vlanBasedReplicationTypeP2mp Boolean
    p2mp replication
    vlanBasedReplicationTypeStatic Boolean
    Static replication
    vlanBasedRouteTarget String
    ASN:nn or IP-address:nn
    vlanBasedRouteTargetBoth String
    ASN:nn or IP-address:nn
    vlanBasedRouteTargetExport String
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    vlanBasedRouteTargetImport String
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EvpnInstance 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 EvpnInstance Resource

    Get an existing EvpnInstance 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?: EvpnInstanceState, opts?: CustomResourceOptions): EvpnInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            device: Optional[str] = None,
            evpn_instance_num: Optional[int] = None,
            vlan_based_auto_route_target: Optional[bool] = None,
            vlan_based_default_gateway_advertise: Optional[str] = None,
            vlan_based_encapsulation: Optional[str] = None,
            vlan_based_ip_local_learning_disable: Optional[bool] = None,
            vlan_based_ip_local_learning_enable: Optional[bool] = None,
            vlan_based_rd: Optional[str] = None,
            vlan_based_re_originate_route_type5: Optional[bool] = None,
            vlan_based_replication_type_ingress: Optional[bool] = None,
            vlan_based_replication_type_mp2mp: Optional[bool] = None,
            vlan_based_replication_type_p2mp: Optional[bool] = None,
            vlan_based_replication_type_static: Optional[bool] = None,
            vlan_based_route_target: Optional[str] = None,
            vlan_based_route_target_both: Optional[str] = None,
            vlan_based_route_target_export: Optional[str] = None,
            vlan_based_route_target_import: Optional[str] = None) -> EvpnInstance
    func GetEvpnInstance(ctx *Context, name string, id IDInput, state *EvpnInstanceState, opts ...ResourceOption) (*EvpnInstance, error)
    public static EvpnInstance Get(string name, Input<string> id, EvpnInstanceState? state, CustomResourceOptions? opts = null)
    public static EvpnInstance get(String name, Output<String> id, EvpnInstanceState 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.
    The following state arguments are supported:
    Device string
    A device name from the provider configuration.
    EvpnInstanceNum int
    evpn instance number - Range: 1-65535
    VlanBasedAutoRouteTarget bool
    Automatically set a route-target
    VlanBasedDefaultGatewayAdvertise string
    Advertise Default Gateway MAC/IP routes - Choices: disable, enable
    VlanBasedEncapsulation string
    Data encapsulation method - Choices: mpls, vxlan
    VlanBasedIpLocalLearningDisable bool
    Disable IP local learning from dataplane
    VlanBasedIpLocalLearningEnable bool
    Enable IP local learning from dataplane
    VlanBasedRd string
    ASN:nn or IP-address:nn
    VlanBasedReOriginateRouteType5 bool
    Re-originate route-type 5
    VlanBasedReplicationTypeIngress bool
    Ingress replication
    VlanBasedReplicationTypeMp2mp bool
    mp2mp replication
    VlanBasedReplicationTypeP2mp bool
    p2mp replication
    VlanBasedReplicationTypeStatic bool
    Static replication
    VlanBasedRouteTarget string
    ASN:nn or IP-address:nn
    VlanBasedRouteTargetBoth string
    ASN:nn or IP-address:nn
    VlanBasedRouteTargetExport string
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    VlanBasedRouteTargetImport string
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    Device string
    A device name from the provider configuration.
    EvpnInstanceNum int
    evpn instance number - Range: 1-65535
    VlanBasedAutoRouteTarget bool
    Automatically set a route-target
    VlanBasedDefaultGatewayAdvertise string
    Advertise Default Gateway MAC/IP routes - Choices: disable, enable
    VlanBasedEncapsulation string
    Data encapsulation method - Choices: mpls, vxlan
    VlanBasedIpLocalLearningDisable bool
    Disable IP local learning from dataplane
    VlanBasedIpLocalLearningEnable bool
    Enable IP local learning from dataplane
    VlanBasedRd string
    ASN:nn or IP-address:nn
    VlanBasedReOriginateRouteType5 bool
    Re-originate route-type 5
    VlanBasedReplicationTypeIngress bool
    Ingress replication
    VlanBasedReplicationTypeMp2mp bool
    mp2mp replication
    VlanBasedReplicationTypeP2mp bool
    p2mp replication
    VlanBasedReplicationTypeStatic bool
    Static replication
    VlanBasedRouteTarget string
    ASN:nn or IP-address:nn
    VlanBasedRouteTargetBoth string
    ASN:nn or IP-address:nn
    VlanBasedRouteTargetExport string
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    VlanBasedRouteTargetImport string
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    device String
    A device name from the provider configuration.
    evpnInstanceNum Integer
    evpn instance number - Range: 1-65535
    vlanBasedAutoRouteTarget Boolean
    Automatically set a route-target
    vlanBasedDefaultGatewayAdvertise String
    Advertise Default Gateway MAC/IP routes - Choices: disable, enable
    vlanBasedEncapsulation String
    Data encapsulation method - Choices: mpls, vxlan
    vlanBasedIpLocalLearningDisable Boolean
    Disable IP local learning from dataplane
    vlanBasedIpLocalLearningEnable Boolean
    Enable IP local learning from dataplane
    vlanBasedRd String
    ASN:nn or IP-address:nn
    vlanBasedReOriginateRouteType5 Boolean
    Re-originate route-type 5
    vlanBasedReplicationTypeIngress Boolean
    Ingress replication
    vlanBasedReplicationTypeMp2mp Boolean
    mp2mp replication
    vlanBasedReplicationTypeP2mp Boolean
    p2mp replication
    vlanBasedReplicationTypeStatic Boolean
    Static replication
    vlanBasedRouteTarget String
    ASN:nn or IP-address:nn
    vlanBasedRouteTargetBoth String
    ASN:nn or IP-address:nn
    vlanBasedRouteTargetExport String
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    vlanBasedRouteTargetImport String
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    device string
    A device name from the provider configuration.
    evpnInstanceNum number
    evpn instance number - Range: 1-65535
    vlanBasedAutoRouteTarget boolean
    Automatically set a route-target
    vlanBasedDefaultGatewayAdvertise string
    Advertise Default Gateway MAC/IP routes - Choices: disable, enable
    vlanBasedEncapsulation string
    Data encapsulation method - Choices: mpls, vxlan
    vlanBasedIpLocalLearningDisable boolean
    Disable IP local learning from dataplane
    vlanBasedIpLocalLearningEnable boolean
    Enable IP local learning from dataplane
    vlanBasedRd string
    ASN:nn or IP-address:nn
    vlanBasedReOriginateRouteType5 boolean
    Re-originate route-type 5
    vlanBasedReplicationTypeIngress boolean
    Ingress replication
    vlanBasedReplicationTypeMp2mp boolean
    mp2mp replication
    vlanBasedReplicationTypeP2mp boolean
    p2mp replication
    vlanBasedReplicationTypeStatic boolean
    Static replication
    vlanBasedRouteTarget string
    ASN:nn or IP-address:nn
    vlanBasedRouteTargetBoth string
    ASN:nn or IP-address:nn
    vlanBasedRouteTargetExport string
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    vlanBasedRouteTargetImport string
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    device str
    A device name from the provider configuration.
    evpn_instance_num int
    evpn instance number - Range: 1-65535
    vlan_based_auto_route_target bool
    Automatically set a route-target
    vlan_based_default_gateway_advertise str
    Advertise Default Gateway MAC/IP routes - Choices: disable, enable
    vlan_based_encapsulation str
    Data encapsulation method - Choices: mpls, vxlan
    vlan_based_ip_local_learning_disable bool
    Disable IP local learning from dataplane
    vlan_based_ip_local_learning_enable bool
    Enable IP local learning from dataplane
    vlan_based_rd str
    ASN:nn or IP-address:nn
    vlan_based_re_originate_route_type5 bool
    Re-originate route-type 5
    vlan_based_replication_type_ingress bool
    Ingress replication
    vlan_based_replication_type_mp2mp bool
    mp2mp replication
    vlan_based_replication_type_p2mp bool
    p2mp replication
    vlan_based_replication_type_static bool
    Static replication
    vlan_based_route_target str
    ASN:nn or IP-address:nn
    vlan_based_route_target_both str
    ASN:nn or IP-address:nn
    vlan_based_route_target_export str
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    vlan_based_route_target_import str
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    device String
    A device name from the provider configuration.
    evpnInstanceNum Number
    evpn instance number - Range: 1-65535
    vlanBasedAutoRouteTarget Boolean
    Automatically set a route-target
    vlanBasedDefaultGatewayAdvertise String
    Advertise Default Gateway MAC/IP routes - Choices: disable, enable
    vlanBasedEncapsulation String
    Data encapsulation method - Choices: mpls, vxlan
    vlanBasedIpLocalLearningDisable Boolean
    Disable IP local learning from dataplane
    vlanBasedIpLocalLearningEnable Boolean
    Enable IP local learning from dataplane
    vlanBasedRd String
    ASN:nn or IP-address:nn
    vlanBasedReOriginateRouteType5 Boolean
    Re-originate route-type 5
    vlanBasedReplicationTypeIngress Boolean
    Ingress replication
    vlanBasedReplicationTypeMp2mp Boolean
    mp2mp replication
    vlanBasedReplicationTypeP2mp Boolean
    p2mp replication
    vlanBasedReplicationTypeStatic Boolean
    Static replication
    vlanBasedRouteTarget String
    ASN:nn or IP-address:nn
    vlanBasedRouteTargetBoth String
    ASN:nn or IP-address:nn
    vlanBasedRouteTargetExport String
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)
    vlanBasedRouteTargetImport String
    ASN:nn or IP-address:nn (DEPRECATED, use rt-value-entry)

    Import

     $ pulumi import iosxe:index/evpnInstance:EvpnInstance example "Cisco-IOS-XE-native:native/l2vpn/Cisco-IOS-XE-l2vpn:evpn_cont/evpn-instance/evpn/instance/instance=10"
    

    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.
    iosxe logo
    Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs