1. Packages
  2. Routeros Provider
  3. API Docs
  4. RoutingBgpEvpn
routeros 1.89.0 published on Wednesday, Oct 15, 2025 by terraform-routeros

routeros.RoutingBgpEvpn

Deploy with Pulumi
routeros logo
routeros 1.89.0 published on Wednesday, Oct 15, 2025 by terraform-routeros

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as routeros from "@pulumi/routeros";
    
    const testRoutingBgpInstance = new routeros.RoutingBgpInstance("testRoutingBgpInstance", {as: "65000"});
    const testRoutingBgpEvpn = new routeros.RoutingBgpEvpn("testRoutingBgpEvpn", {
        disabled: false,
        "export": {
            routeTargets: ["1010:1010"],
        },
        "import": {
            routeTargets: ["1010:1010"],
        },
        instance: resource.routeros_routing_bgp_instance.test.name,
        vni: 1010,
    });
    
    import pulumi
    import pulumi_routeros as routeros
    
    test_routing_bgp_instance = routeros.RoutingBgpInstance("testRoutingBgpInstance", as_="65000")
    test_routing_bgp_evpn = routeros.RoutingBgpEvpn("testRoutingBgpEvpn",
        disabled=False,
        export={
            "route_targets": ["1010:1010"],
        },
        import_={
            "route_targets": ["1010:1010"],
        },
        instance=resource["routeros_routing_bgp_instance"]["test"]["name"],
        vni=1010)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/routeros/routeros"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := routeros.NewRoutingBgpInstance(ctx, "testRoutingBgpInstance", &routeros.RoutingBgpInstanceArgs{
    			As: pulumi.String("65000"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = routeros.NewRoutingBgpEvpn(ctx, "testRoutingBgpEvpn", &routeros.RoutingBgpEvpnArgs{
    			Disabled: pulumi.Bool(false),
    			Export: &routeros.RoutingBgpEvpnExportArgs{
    				RouteTargets: pulumi.StringArray{
    					pulumi.String("1010:1010"),
    				},
    			},
    			Import: &routeros.RoutingBgpEvpnImportArgs{
    				RouteTargets: pulumi.StringArray{
    					pulumi.String("1010:1010"),
    				},
    			},
    			Instance: pulumi.Any(resource.Routeros_routing_bgp_instance.Test.Name),
    			Vni:      pulumi.Float64(1010),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Routeros = Pulumi.Routeros;
    
    return await Deployment.RunAsync(() => 
    {
        var testRoutingBgpInstance = new Routeros.RoutingBgpInstance("testRoutingBgpInstance", new()
        {
            As = "65000",
        });
    
        var testRoutingBgpEvpn = new Routeros.RoutingBgpEvpn("testRoutingBgpEvpn", new()
        {
            Disabled = false,
            Export = new Routeros.Inputs.RoutingBgpEvpnExportArgs
            {
                RouteTargets = new[]
                {
                    "1010:1010",
                },
            },
            Import = new Routeros.Inputs.RoutingBgpEvpnImportArgs
            {
                RouteTargets = new[]
                {
                    "1010:1010",
                },
            },
            Instance = resource.Routeros_routing_bgp_instance.Test.Name,
            Vni = 1010,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.routeros.RoutingBgpInstance;
    import com.pulumi.routeros.RoutingBgpInstanceArgs;
    import com.pulumi.routeros.RoutingBgpEvpn;
    import com.pulumi.routeros.RoutingBgpEvpnArgs;
    import com.pulumi.routeros.inputs.RoutingBgpEvpnExportArgs;
    import com.pulumi.routeros.inputs.RoutingBgpEvpnImportArgs;
    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 testRoutingBgpInstance = new RoutingBgpInstance("testRoutingBgpInstance", RoutingBgpInstanceArgs.builder()
                .as("65000")
                .build());
    
            var testRoutingBgpEvpn = new RoutingBgpEvpn("testRoutingBgpEvpn", RoutingBgpEvpnArgs.builder()
                .disabled(false)
                .export(RoutingBgpEvpnExportArgs.builder()
                    .routeTargets("1010:1010")
                    .build())
                .import_(RoutingBgpEvpnImportArgs.builder()
                    .routeTargets("1010:1010")
                    .build())
                .instance(resource.routeros_routing_bgp_instance().test().name())
                .vni(1010)
                .build());
    
        }
    }
    
    resources:
      testRoutingBgpInstance:
        type: routeros:RoutingBgpInstance
        properties:
          as: '65000'
      testRoutingBgpEvpn:
        type: routeros:RoutingBgpEvpn
        properties:
          disabled: false
          export:
            routeTargets:
              - 1010:1010
          import:
            routeTargets:
              - 1010:1010
          instance: ${resource.routeros_routing_bgp_instance.test.name}
          vni: 1010
    

    Create RoutingBgpEvpn Resource

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

    Constructor syntax

    new RoutingBgpEvpn(name: string, args: RoutingBgpEvpnArgs, opts?: CustomResourceOptions);
    @overload
    def RoutingBgpEvpn(resource_name: str,
                       args: RoutingBgpEvpnArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def RoutingBgpEvpn(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       instance: Optional[str] = None,
                       ___id_: Optional[float] = None,
                       ___path_: Optional[str] = None,
                       comment: Optional[str] = None,
                       disabled: Optional[bool] = None,
                       export: Optional[RoutingBgpEvpnExportArgs] = None,
                       import_: Optional[RoutingBgpEvpnImportArgs] = None,
                       name: Optional[str] = None,
                       rd: Optional[str] = None,
                       routing_bgp_evpn_id: Optional[str] = None,
                       vni: Optional[float] = None,
                       vrf: Optional[str] = None)
    func NewRoutingBgpEvpn(ctx *Context, name string, args RoutingBgpEvpnArgs, opts ...ResourceOption) (*RoutingBgpEvpn, error)
    public RoutingBgpEvpn(string name, RoutingBgpEvpnArgs args, CustomResourceOptions? opts = null)
    public RoutingBgpEvpn(String name, RoutingBgpEvpnArgs args)
    public RoutingBgpEvpn(String name, RoutingBgpEvpnArgs args, CustomResourceOptions options)
    
    type: routeros:RoutingBgpEvpn
    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 RoutingBgpEvpnArgs
    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 RoutingBgpEvpnArgs
    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 RoutingBgpEvpnArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RoutingBgpEvpnArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RoutingBgpEvpnArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    RoutingBgpEvpn 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 RoutingBgpEvpn resource accepts the following input properties:

    Instance string
    BGP instance this EVPN is assigned to.
    Comment string
    Disabled bool
    Export RoutingBgpEvpnExport
    A group of parameters associated with the route export.
    Import RoutingBgpEvpnImport
    A group of parameters associated with the route import.
    Name string
    Name of the entry.
    Rd string
    Specifies the value that gets attached to route so that receiving routers can distinguish advertisements that may otherwise look the same. Used to distinguish between tenants using overlapping IP ranges. Also can be used to simplify convergence and redundancy within Virtual Network. RDs form MLAG pairs should be unique, too.
    RoutingBgpEvpnId string
    The ID of this resource.
    Vni double
    Range of Virtual Network Identifiers.
    Vrf string
    VRF name.
    ___id_ double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    Instance string
    BGP instance this EVPN is assigned to.
    Comment string
    Disabled bool
    Export RoutingBgpEvpnExportArgs
    A group of parameters associated with the route export.
    Import RoutingBgpEvpnImportArgs
    A group of parameters associated with the route import.
    Name string
    Name of the entry.
    Rd string
    Specifies the value that gets attached to route so that receiving routers can distinguish advertisements that may otherwise look the same. Used to distinguish between tenants using overlapping IP ranges. Also can be used to simplify convergence and redundancy within Virtual Network. RDs form MLAG pairs should be unique, too.
    RoutingBgpEvpnId string
    The ID of this resource.
    Vni float64
    Range of Virtual Network Identifiers.
    Vrf string
    VRF name.
    ___id_ float64
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    instance String
    BGP instance this EVPN is assigned to.
    ___id_ Double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    comment String
    disabled Boolean
    export RoutingBgpEvpnExport
    A group of parameters associated with the route export.
    import_ RoutingBgpEvpnImport
    A group of parameters associated with the route import.
    name String
    Name of the entry.
    rd String
    Specifies the value that gets attached to route so that receiving routers can distinguish advertisements that may otherwise look the same. Used to distinguish between tenants using overlapping IP ranges. Also can be used to simplify convergence and redundancy within Virtual Network. RDs form MLAG pairs should be unique, too.
    routingBgpEvpnId String
    The ID of this resource.
    vni Double
    Range of Virtual Network Identifiers.
    vrf String
    VRF name.
    instance string
    BGP instance this EVPN is assigned to.
    ___id_ number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    comment string
    disabled boolean
    export RoutingBgpEvpnExport
    A group of parameters associated with the route export.
    import RoutingBgpEvpnImport
    A group of parameters associated with the route import.
    name string
    Name of the entry.
    rd string
    Specifies the value that gets attached to route so that receiving routers can distinguish advertisements that may otherwise look the same. Used to distinguish between tenants using overlapping IP ranges. Also can be used to simplify convergence and redundancy within Virtual Network. RDs form MLAG pairs should be unique, too.
    routingBgpEvpnId string
    The ID of this resource.
    vni number
    Range of Virtual Network Identifiers.
    vrf string
    VRF name.
    instance str
    BGP instance this EVPN is assigned to.
    ___id_ float
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ str
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    comment str
    disabled bool
    export RoutingBgpEvpnExportArgs
    A group of parameters associated with the route export.
    import_ RoutingBgpEvpnImportArgs
    A group of parameters associated with the route import.
    name str
    Name of the entry.
    rd str
    Specifies the value that gets attached to route so that receiving routers can distinguish advertisements that may otherwise look the same. Used to distinguish between tenants using overlapping IP ranges. Also can be used to simplify convergence and redundancy within Virtual Network. RDs form MLAG pairs should be unique, too.
    routing_bgp_evpn_id str
    The ID of this resource.
    vni float
    Range of Virtual Network Identifiers.
    vrf str
    VRF name.
    instance String
    BGP instance this EVPN is assigned to.
    ___id_ Number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    comment String
    disabled Boolean
    export Property Map
    A group of parameters associated with the route export.
    import Property Map
    A group of parameters associated with the route import.
    name String
    Name of the entry.
    rd String
    Specifies the value that gets attached to route so that receiving routers can distinguish advertisements that may otherwise look the same. Used to distinguish between tenants using overlapping IP ranges. Also can be used to simplify convergence and redundancy within Virtual Network. RDs form MLAG pairs should be unique, too.
    routingBgpEvpnId String
    The ID of this resource.
    vni Number
    Range of Virtual Network Identifiers.
    vrf String
    VRF name.

    Outputs

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

    Get an existing RoutingBgpEvpn 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?: RoutingBgpEvpnState, opts?: CustomResourceOptions): RoutingBgpEvpn
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ___id_: Optional[float] = None,
            ___path_: Optional[str] = None,
            comment: Optional[str] = None,
            disabled: Optional[bool] = None,
            export: Optional[RoutingBgpEvpnExportArgs] = None,
            import_: Optional[RoutingBgpEvpnImportArgs] = None,
            instance: Optional[str] = None,
            name: Optional[str] = None,
            rd: Optional[str] = None,
            routing_bgp_evpn_id: Optional[str] = None,
            vni: Optional[float] = None,
            vrf: Optional[str] = None) -> RoutingBgpEvpn
    func GetRoutingBgpEvpn(ctx *Context, name string, id IDInput, state *RoutingBgpEvpnState, opts ...ResourceOption) (*RoutingBgpEvpn, error)
    public static RoutingBgpEvpn Get(string name, Input<string> id, RoutingBgpEvpnState? state, CustomResourceOptions? opts = null)
    public static RoutingBgpEvpn get(String name, Output<String> id, RoutingBgpEvpnState state, CustomResourceOptions options)
    resources:  _:    type: routeros:RoutingBgpEvpn    get:      id: ${id}
    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:
    Comment string
    Disabled bool
    Export RoutingBgpEvpnExport
    A group of parameters associated with the route export.
    Import RoutingBgpEvpnImport
    A group of parameters associated with the route import.
    Instance string
    BGP instance this EVPN is assigned to.
    Name string
    Name of the entry.
    Rd string
    Specifies the value that gets attached to route so that receiving routers can distinguish advertisements that may otherwise look the same. Used to distinguish between tenants using overlapping IP ranges. Also can be used to simplify convergence and redundancy within Virtual Network. RDs form MLAG pairs should be unique, too.
    RoutingBgpEvpnId string
    The ID of this resource.
    Vni double
    Range of Virtual Network Identifiers.
    Vrf string
    VRF name.
    ___id_ double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    Comment string
    Disabled bool
    Export RoutingBgpEvpnExportArgs
    A group of parameters associated with the route export.
    Import RoutingBgpEvpnImportArgs
    A group of parameters associated with the route import.
    Instance string
    BGP instance this EVPN is assigned to.
    Name string
    Name of the entry.
    Rd string
    Specifies the value that gets attached to route so that receiving routers can distinguish advertisements that may otherwise look the same. Used to distinguish between tenants using overlapping IP ranges. Also can be used to simplify convergence and redundancy within Virtual Network. RDs form MLAG pairs should be unique, too.
    RoutingBgpEvpnId string
    The ID of this resource.
    Vni float64
    Range of Virtual Network Identifiers.
    Vrf string
    VRF name.
    ___id_ float64
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___id_ Double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    comment String
    disabled Boolean
    export RoutingBgpEvpnExport
    A group of parameters associated with the route export.
    import_ RoutingBgpEvpnImport
    A group of parameters associated with the route import.
    instance String
    BGP instance this EVPN is assigned to.
    name String
    Name of the entry.
    rd String
    Specifies the value that gets attached to route so that receiving routers can distinguish advertisements that may otherwise look the same. Used to distinguish between tenants using overlapping IP ranges. Also can be used to simplify convergence and redundancy within Virtual Network. RDs form MLAG pairs should be unique, too.
    routingBgpEvpnId String
    The ID of this resource.
    vni Double
    Range of Virtual Network Identifiers.
    vrf String
    VRF name.
    ___id_ number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    comment string
    disabled boolean
    export RoutingBgpEvpnExport
    A group of parameters associated with the route export.
    import RoutingBgpEvpnImport
    A group of parameters associated with the route import.
    instance string
    BGP instance this EVPN is assigned to.
    name string
    Name of the entry.
    rd string
    Specifies the value that gets attached to route so that receiving routers can distinguish advertisements that may otherwise look the same. Used to distinguish between tenants using overlapping IP ranges. Also can be used to simplify convergence and redundancy within Virtual Network. RDs form MLAG pairs should be unique, too.
    routingBgpEvpnId string
    The ID of this resource.
    vni number
    Range of Virtual Network Identifiers.
    vrf string
    VRF name.
    ___id_ float
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ str
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    comment str
    disabled bool
    export RoutingBgpEvpnExportArgs
    A group of parameters associated with the route export.
    import_ RoutingBgpEvpnImportArgs
    A group of parameters associated with the route import.
    instance str
    BGP instance this EVPN is assigned to.
    name str
    Name of the entry.
    rd str
    Specifies the value that gets attached to route so that receiving routers can distinguish advertisements that may otherwise look the same. Used to distinguish between tenants using overlapping IP ranges. Also can be used to simplify convergence and redundancy within Virtual Network. RDs form MLAG pairs should be unique, too.
    routing_bgp_evpn_id str
    The ID of this resource.
    vni float
    Range of Virtual Network Identifiers.
    vrf str
    VRF name.
    ___id_ Number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    comment String
    disabled Boolean
    export Property Map
    A group of parameters associated with the route export.
    import Property Map
    A group of parameters associated with the route import.
    instance String
    BGP instance this EVPN is assigned to.
    name String
    Name of the entry.
    rd String
    Specifies the value that gets attached to route so that receiving routers can distinguish advertisements that may otherwise look the same. Used to distinguish between tenants using overlapping IP ranges. Also can be used to simplify convergence and redundancy within Virtual Network. RDs form MLAG pairs should be unique, too.
    routingBgpEvpnId String
    The ID of this resource.
    vni Number
    Range of Virtual Network Identifiers.
    vrf String
    VRF name.

    Supporting Types

    RoutingBgpEvpnExport, RoutingBgpEvpnExportArgs

    RouteTargets List<string>
    List of route targets that will be added to EVPN routes when exporting.
    RouteTargets []string
    List of route targets that will be added to EVPN routes when exporting.
    routeTargets List<String>
    List of route targets that will be added to EVPN routes when exporting.
    routeTargets string[]
    List of route targets that will be added to EVPN routes when exporting.
    route_targets Sequence[str]
    List of route targets that will be added to EVPN routes when exporting.
    routeTargets List<String>
    List of route targets that will be added to EVPN routes when exporting.

    RoutingBgpEvpnImport, RoutingBgpEvpnImportArgs

    RouteTargets List<string>
    List of route targets that will be used to import EVPN routes.
    RouteTargets []string
    List of route targets that will be used to import EVPN routes.
    routeTargets List<String>
    List of route targets that will be used to import EVPN routes.
    routeTargets string[]
    List of route targets that will be used to import EVPN routes.
    route_targets Sequence[str]
    List of route targets that will be used to import EVPN routes.
    routeTargets List<String>
    List of route targets that will be used to import EVPN routes.

    Import

    #The ID can be found via API or the terminal

    #The command for the terminal is -> :put [/routing/bgp/evpn get [print show-ids]]

    $ pulumi import routeros:index/routingBgpEvpn:RoutingBgpEvpn test *3
    

    #Or you can import a resource using one of its attributes

    $ pulumi import routeros:index/routingBgpEvpn:RoutingBgpEvpn test "name=xxx"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    routeros terraform-routeros/terraform-provider-routeros
    License
    Notes
    This Pulumi package is based on the routeros Terraform Provider.
    routeros logo
    routeros 1.89.0 published on Wednesday, Oct 15, 2025 by terraform-routeros
      Meet Neo: Your AI Platform Teammate