1. Packages
  2. Fortios
  3. API Docs
  4. router
  5. Routemap
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

fortios.router.Routemap

Explore with Pulumi AI

Configure route maps.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";

const trname = new fortios.router.Routemap("trname", {rules: [{
    action: "deny",
    matchCommunityExact: "disable",
    matchFlags: 0,
    matchMetric: 0,
    matchOrigin: "none",
    matchRouteType: "No type specified",
    matchTag: 0,
    setAggregatorAs: 0,
    setAggregatorIp: "0.0.0.0",
    setAspathAction: "prepend",
    setAtomicAggregate: "disable",
    setCommunityAdditive: "disable",
    setDampeningMaxSuppress: 0,
    setDampeningReachabilityHalfLife: 0,
    setDampeningReuse: 0,
    setDampeningSuppress: 0,
    setDampeningUnreachabilityHalfLife: 0,
    setFlags: 128,
    setIp6Nexthop: "::",
    setIp6NexthopLocal: "::",
    setIpNexthop: "0.0.0.0",
    setLocalPreference: 0,
    setMetric: 0,
    setMetricType: "No type specified",
    setOrigin: "none",
    setOriginatorId: "0.0.0.0",
    setRouteTag: 0,
    setTag: 0,
    setWeight: 21,
}]});
Copy
import pulumi
import pulumiverse_fortios as fortios

trname = fortios.router.Routemap("trname", rules=[fortios.router.RoutemapRuleArgs(
    action="deny",
    match_community_exact="disable",
    match_flags=0,
    match_metric=0,
    match_origin="none",
    match_route_type="No type specified",
    match_tag=0,
    set_aggregator_as=0,
    set_aggregator_ip="0.0.0.0",
    set_aspath_action="prepend",
    set_atomic_aggregate="disable",
    set_community_additive="disable",
    set_dampening_max_suppress=0,
    set_dampening_reachability_half_life=0,
    set_dampening_reuse=0,
    set_dampening_suppress=0,
    set_dampening_unreachability_half_life=0,
    set_flags=128,
    set_ip6_nexthop="::",
    set_ip6_nexthop_local="::",
    set_ip_nexthop="0.0.0.0",
    set_local_preference=0,
    set_metric=0,
    set_metric_type="No type specified",
    set_origin="none",
    set_originator_id="0.0.0.0",
    set_route_tag=0,
    set_tag=0,
    set_weight=21,
)])
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/router"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := router.NewRoutemap(ctx, "trname", &router.RoutemapArgs{
			Rules: router.RoutemapRuleArray{
				&router.RoutemapRuleArgs{
					Action:                             pulumi.String("deny"),
					MatchCommunityExact:                pulumi.String("disable"),
					MatchFlags:                         pulumi.Int(0),
					MatchMetric:                        pulumi.Int(0),
					MatchOrigin:                        pulumi.String("none"),
					MatchRouteType:                     pulumi.String("No type specified"),
					MatchTag:                           pulumi.Int(0),
					SetAggregatorAs:                    pulumi.Int(0),
					SetAggregatorIp:                    pulumi.String("0.0.0.0"),
					SetAspathAction:                    pulumi.String("prepend"),
					SetAtomicAggregate:                 pulumi.String("disable"),
					SetCommunityAdditive:               pulumi.String("disable"),
					SetDampeningMaxSuppress:            pulumi.Int(0),
					SetDampeningReachabilityHalfLife:   pulumi.Int(0),
					SetDampeningReuse:                  pulumi.Int(0),
					SetDampeningSuppress:               pulumi.Int(0),
					SetDampeningUnreachabilityHalfLife: pulumi.Int(0),
					SetFlags:                           pulumi.Int(128),
					SetIp6Nexthop:                      pulumi.String("::"),
					SetIp6NexthopLocal:                 pulumi.String("::"),
					SetIpNexthop:                       pulumi.String("0.0.0.0"),
					SetLocalPreference:                 pulumi.Int(0),
					SetMetric:                          pulumi.Int(0),
					SetMetricType:                      pulumi.String("No type specified"),
					SetOrigin:                          pulumi.String("none"),
					SetOriginatorId:                    pulumi.String("0.0.0.0"),
					SetRouteTag:                        pulumi.Int(0),
					SetTag:                             pulumi.Int(0),
					SetWeight:                          pulumi.Int(21),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumiverse.Fortios;

return await Deployment.RunAsync(() => 
{
    var trname = new Fortios.Router.Routemap("trname", new()
    {
        Rules = new[]
        {
            new Fortios.Router.Inputs.RoutemapRuleArgs
            {
                Action = "deny",
                MatchCommunityExact = "disable",
                MatchFlags = 0,
                MatchMetric = 0,
                MatchOrigin = "none",
                MatchRouteType = "No type specified",
                MatchTag = 0,
                SetAggregatorAs = 0,
                SetAggregatorIp = "0.0.0.0",
                SetAspathAction = "prepend",
                SetAtomicAggregate = "disable",
                SetCommunityAdditive = "disable",
                SetDampeningMaxSuppress = 0,
                SetDampeningReachabilityHalfLife = 0,
                SetDampeningReuse = 0,
                SetDampeningSuppress = 0,
                SetDampeningUnreachabilityHalfLife = 0,
                SetFlags = 128,
                SetIp6Nexthop = "::",
                SetIp6NexthopLocal = "::",
                SetIpNexthop = "0.0.0.0",
                SetLocalPreference = 0,
                SetMetric = 0,
                SetMetricType = "No type specified",
                SetOrigin = "none",
                SetOriginatorId = "0.0.0.0",
                SetRouteTag = 0,
                SetTag = 0,
                SetWeight = 21,
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.router.Routemap;
import com.pulumi.fortios.router.RoutemapArgs;
import com.pulumi.fortios.router.inputs.RoutemapRuleArgs;
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 trname = new Routemap("trname", RoutemapArgs.builder()
            .rules(RoutemapRuleArgs.builder()
                .action("deny")
                .matchCommunityExact("disable")
                .matchFlags(0)
                .matchMetric(0)
                .matchOrigin("none")
                .matchRouteType("No type specified")
                .matchTag(0)
                .setAggregatorAs(0)
                .setAggregatorIp("0.0.0.0")
                .setAspathAction("prepend")
                .setAtomicAggregate("disable")
                .setCommunityAdditive("disable")
                .setDampeningMaxSuppress(0)
                .setDampeningReachabilityHalfLife(0)
                .setDampeningReuse(0)
                .setDampeningSuppress(0)
                .setDampeningUnreachabilityHalfLife(0)
                .setFlags(128)
                .setIp6Nexthop("::")
                .setIp6NexthopLocal("::")
                .setIpNexthop("0.0.0.0")
                .setLocalPreference(0)
                .setMetric(0)
                .setMetricType("No type specified")
                .setOrigin("none")
                .setOriginatorId("0.0.0.0")
                .setRouteTag(0)
                .setTag(0)
                .setWeight(21)
                .build())
            .build());

    }
}
Copy
resources:
  trname:
    type: fortios:router:Routemap
    properties:
      rules:
        - action: deny
          matchCommunityExact: disable
          matchFlags: 0
          matchMetric: 0
          matchOrigin: none
          matchRouteType: No type specified
          matchTag: 0
          setAggregatorAs: 0
          setAggregatorIp: 0.0.0.0
          setAspathAction: prepend
          setAtomicAggregate: disable
          setCommunityAdditive: disable
          setDampeningMaxSuppress: 0
          setDampeningReachabilityHalfLife: 0
          setDampeningReuse: 0
          setDampeningSuppress: 0
          setDampeningUnreachabilityHalfLife: 0
          setFlags: 128
          setIp6Nexthop: '::'
          setIp6NexthopLocal: '::'
          setIpNexthop: 0.0.0.0
          setLocalPreference: 0
          setMetric: 0
          setMetricType: No type specified
          setOrigin: none
          setOriginatorId: 0.0.0.0
          setRouteTag: 0
          setTag: 0
          setWeight: 21
Copy

Create Routemap Resource

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

Constructor syntax

new Routemap(name: string, args?: RoutemapArgs, opts?: CustomResourceOptions);
@overload
def Routemap(resource_name: str,
             args: Optional[RoutemapArgs] = None,
             opts: Optional[ResourceOptions] = None)

@overload
def Routemap(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             comments: Optional[str] = None,
             dynamic_sort_subtable: Optional[str] = None,
             get_all_tables: Optional[str] = None,
             name: Optional[str] = None,
             rules: Optional[Sequence[RoutemapRuleArgs]] = None,
             vdomparam: Optional[str] = None)
func NewRoutemap(ctx *Context, name string, args *RoutemapArgs, opts ...ResourceOption) (*Routemap, error)
public Routemap(string name, RoutemapArgs? args = null, CustomResourceOptions? opts = null)
public Routemap(String name, RoutemapArgs args)
public Routemap(String name, RoutemapArgs args, CustomResourceOptions options)
type: fortios:router:Routemap
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args RoutemapArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args RoutemapArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args RoutemapArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args RoutemapArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RoutemapArgs
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 routemapResource = new Fortios.Router.Routemap("routemapResource", new()
{
    Comments = "string",
    DynamicSortSubtable = "string",
    GetAllTables = "string",
    Name = "string",
    Rules = new[]
    {
        new Fortios.Router.Inputs.RoutemapRuleArgs
        {
            Action = "string",
            Id = 0,
            MatchAsPath = "string",
            MatchCommunity = "string",
            MatchCommunityExact = "string",
            MatchExtcommunity = "string",
            MatchExtcommunityExact = "string",
            MatchFlags = 0,
            MatchInterface = "string",
            MatchIp6Address = "string",
            MatchIp6Nexthop = "string",
            MatchIpAddress = "string",
            MatchIpNexthop = "string",
            MatchMetric = 0,
            MatchOrigin = "string",
            MatchRouteType = "string",
            MatchTag = 0,
            MatchVrf = 0,
            SetAggregatorAs = 0,
            SetAggregatorIp = "string",
            SetAspathAction = "string",
            SetAspaths = new[]
            {
                new Fortios.Router.Inputs.RoutemapRuleSetAspathArgs
                {
                    As = "string",
                },
            },
            SetAtomicAggregate = "string",
            SetCommunities = new[]
            {
                new Fortios.Router.Inputs.RoutemapRuleSetCommunityArgs
                {
                    Community = "string",
                },
            },
            SetCommunityAdditive = "string",
            SetCommunityDelete = "string",
            SetDampeningMaxSuppress = 0,
            SetDampeningReachabilityHalfLife = 0,
            SetDampeningReuse = 0,
            SetDampeningSuppress = 0,
            SetDampeningUnreachabilityHalfLife = 0,
            SetExtcommunityRts = new[]
            {
                new Fortios.Router.Inputs.RoutemapRuleSetExtcommunityRtArgs
                {
                    Community = "string",
                },
            },
            SetExtcommunitySoos = new[]
            {
                new Fortios.Router.Inputs.RoutemapRuleSetExtcommunitySooArgs
                {
                    Community = "string",
                },
            },
            SetFlags = 0,
            SetIp6Nexthop = "string",
            SetIp6NexthopLocal = "string",
            SetIpNexthop = "string",
            SetIpPrefsrc = "string",
            SetLocalPreference = 0,
            SetMetric = 0,
            SetMetricType = "string",
            SetOrigin = "string",
            SetOriginatorId = "string",
            SetPriority = 0,
            SetRouteTag = 0,
            SetTag = 0,
            SetVpnv4Nexthop = "string",
            SetVpnv6Nexthop = "string",
            SetVpnv6NexthopLocal = "string",
            SetWeight = 0,
        },
    },
    Vdomparam = "string",
});
Copy
example, err := router.NewRoutemap(ctx, "routemapResource", &router.RoutemapArgs{
	Comments:            pulumi.String("string"),
	DynamicSortSubtable: pulumi.String("string"),
	GetAllTables:        pulumi.String("string"),
	Name:                pulumi.String("string"),
	Rules: router.RoutemapRuleArray{
		&router.RoutemapRuleArgs{
			Action:                 pulumi.String("string"),
			Id:                     pulumi.Int(0),
			MatchAsPath:            pulumi.String("string"),
			MatchCommunity:         pulumi.String("string"),
			MatchCommunityExact:    pulumi.String("string"),
			MatchExtcommunity:      pulumi.String("string"),
			MatchExtcommunityExact: pulumi.String("string"),
			MatchFlags:             pulumi.Int(0),
			MatchInterface:         pulumi.String("string"),
			MatchIp6Address:        pulumi.String("string"),
			MatchIp6Nexthop:        pulumi.String("string"),
			MatchIpAddress:         pulumi.String("string"),
			MatchIpNexthop:         pulumi.String("string"),
			MatchMetric:            pulumi.Int(0),
			MatchOrigin:            pulumi.String("string"),
			MatchRouteType:         pulumi.String("string"),
			MatchTag:               pulumi.Int(0),
			MatchVrf:               pulumi.Int(0),
			SetAggregatorAs:        pulumi.Int(0),
			SetAggregatorIp:        pulumi.String("string"),
			SetAspathAction:        pulumi.String("string"),
			SetAspaths: router.RoutemapRuleSetAspathArray{
				&router.RoutemapRuleSetAspathArgs{
					As: pulumi.String("string"),
				},
			},
			SetAtomicAggregate: pulumi.String("string"),
			SetCommunities: router.RoutemapRuleSetCommunityArray{
				&router.RoutemapRuleSetCommunityArgs{
					Community: pulumi.String("string"),
				},
			},
			SetCommunityAdditive:               pulumi.String("string"),
			SetCommunityDelete:                 pulumi.String("string"),
			SetDampeningMaxSuppress:            pulumi.Int(0),
			SetDampeningReachabilityHalfLife:   pulumi.Int(0),
			SetDampeningReuse:                  pulumi.Int(0),
			SetDampeningSuppress:               pulumi.Int(0),
			SetDampeningUnreachabilityHalfLife: pulumi.Int(0),
			SetExtcommunityRts: router.RoutemapRuleSetExtcommunityRtArray{
				&router.RoutemapRuleSetExtcommunityRtArgs{
					Community: pulumi.String("string"),
				},
			},
			SetExtcommunitySoos: router.RoutemapRuleSetExtcommunitySooArray{
				&router.RoutemapRuleSetExtcommunitySooArgs{
					Community: pulumi.String("string"),
				},
			},
			SetFlags:             pulumi.Int(0),
			SetIp6Nexthop:        pulumi.String("string"),
			SetIp6NexthopLocal:   pulumi.String("string"),
			SetIpNexthop:         pulumi.String("string"),
			SetIpPrefsrc:         pulumi.String("string"),
			SetLocalPreference:   pulumi.Int(0),
			SetMetric:            pulumi.Int(0),
			SetMetricType:        pulumi.String("string"),
			SetOrigin:            pulumi.String("string"),
			SetOriginatorId:      pulumi.String("string"),
			SetPriority:          pulumi.Int(0),
			SetRouteTag:          pulumi.Int(0),
			SetTag:               pulumi.Int(0),
			SetVpnv4Nexthop:      pulumi.String("string"),
			SetVpnv6Nexthop:      pulumi.String("string"),
			SetVpnv6NexthopLocal: pulumi.String("string"),
			SetWeight:            pulumi.Int(0),
		},
	},
	Vdomparam: pulumi.String("string"),
})
Copy
var routemapResource = new Routemap("routemapResource", RoutemapArgs.builder()
    .comments("string")
    .dynamicSortSubtable("string")
    .getAllTables("string")
    .name("string")
    .rules(RoutemapRuleArgs.builder()
        .action("string")
        .id(0)
        .matchAsPath("string")
        .matchCommunity("string")
        .matchCommunityExact("string")
        .matchExtcommunity("string")
        .matchExtcommunityExact("string")
        .matchFlags(0)
        .matchInterface("string")
        .matchIp6Address("string")
        .matchIp6Nexthop("string")
        .matchIpAddress("string")
        .matchIpNexthop("string")
        .matchMetric(0)
        .matchOrigin("string")
        .matchRouteType("string")
        .matchTag(0)
        .matchVrf(0)
        .setAggregatorAs(0)
        .setAggregatorIp("string")
        .setAspathAction("string")
        .setAspaths(RoutemapRuleSetAspathArgs.builder()
            .as("string")
            .build())
        .setAtomicAggregate("string")
        .setCommunities(RoutemapRuleSetCommunityArgs.builder()
            .community("string")
            .build())
        .setCommunityAdditive("string")
        .setCommunityDelete("string")
        .setDampeningMaxSuppress(0)
        .setDampeningReachabilityHalfLife(0)
        .setDampeningReuse(0)
        .setDampeningSuppress(0)
        .setDampeningUnreachabilityHalfLife(0)
        .setExtcommunityRts(RoutemapRuleSetExtcommunityRtArgs.builder()
            .community("string")
            .build())
        .setExtcommunitySoos(RoutemapRuleSetExtcommunitySooArgs.builder()
            .community("string")
            .build())
        .setFlags(0)
        .setIp6Nexthop("string")
        .setIp6NexthopLocal("string")
        .setIpNexthop("string")
        .setIpPrefsrc("string")
        .setLocalPreference(0)
        .setMetric(0)
        .setMetricType("string")
        .setOrigin("string")
        .setOriginatorId("string")
        .setPriority(0)
        .setRouteTag(0)
        .setTag(0)
        .setVpnv4Nexthop("string")
        .setVpnv6Nexthop("string")
        .setVpnv6NexthopLocal("string")
        .setWeight(0)
        .build())
    .vdomparam("string")
    .build());
Copy
routemap_resource = fortios.router.Routemap("routemapResource",
    comments="string",
    dynamic_sort_subtable="string",
    get_all_tables="string",
    name="string",
    rules=[{
        "action": "string",
        "id": 0,
        "match_as_path": "string",
        "match_community": "string",
        "match_community_exact": "string",
        "match_extcommunity": "string",
        "match_extcommunity_exact": "string",
        "match_flags": 0,
        "match_interface": "string",
        "match_ip6_address": "string",
        "match_ip6_nexthop": "string",
        "match_ip_address": "string",
        "match_ip_nexthop": "string",
        "match_metric": 0,
        "match_origin": "string",
        "match_route_type": "string",
        "match_tag": 0,
        "match_vrf": 0,
        "set_aggregator_as": 0,
        "set_aggregator_ip": "string",
        "set_aspath_action": "string",
        "set_aspaths": [{
            "as_": "string",
        }],
        "set_atomic_aggregate": "string",
        "set_communities": [{
            "community": "string",
        }],
        "set_community_additive": "string",
        "set_community_delete": "string",
        "set_dampening_max_suppress": 0,
        "set_dampening_reachability_half_life": 0,
        "set_dampening_reuse": 0,
        "set_dampening_suppress": 0,
        "set_dampening_unreachability_half_life": 0,
        "set_extcommunity_rts": [{
            "community": "string",
        }],
        "set_extcommunity_soos": [{
            "community": "string",
        }],
        "set_flags": 0,
        "set_ip6_nexthop": "string",
        "set_ip6_nexthop_local": "string",
        "set_ip_nexthop": "string",
        "set_ip_prefsrc": "string",
        "set_local_preference": 0,
        "set_metric": 0,
        "set_metric_type": "string",
        "set_origin": "string",
        "set_originator_id": "string",
        "set_priority": 0,
        "set_route_tag": 0,
        "set_tag": 0,
        "set_vpnv4_nexthop": "string",
        "set_vpnv6_nexthop": "string",
        "set_vpnv6_nexthop_local": "string",
        "set_weight": 0,
    }],
    vdomparam="string")
Copy
const routemapResource = new fortios.router.Routemap("routemapResource", {
    comments: "string",
    dynamicSortSubtable: "string",
    getAllTables: "string",
    name: "string",
    rules: [{
        action: "string",
        id: 0,
        matchAsPath: "string",
        matchCommunity: "string",
        matchCommunityExact: "string",
        matchExtcommunity: "string",
        matchExtcommunityExact: "string",
        matchFlags: 0,
        matchInterface: "string",
        matchIp6Address: "string",
        matchIp6Nexthop: "string",
        matchIpAddress: "string",
        matchIpNexthop: "string",
        matchMetric: 0,
        matchOrigin: "string",
        matchRouteType: "string",
        matchTag: 0,
        matchVrf: 0,
        setAggregatorAs: 0,
        setAggregatorIp: "string",
        setAspathAction: "string",
        setAspaths: [{
            as: "string",
        }],
        setAtomicAggregate: "string",
        setCommunities: [{
            community: "string",
        }],
        setCommunityAdditive: "string",
        setCommunityDelete: "string",
        setDampeningMaxSuppress: 0,
        setDampeningReachabilityHalfLife: 0,
        setDampeningReuse: 0,
        setDampeningSuppress: 0,
        setDampeningUnreachabilityHalfLife: 0,
        setExtcommunityRts: [{
            community: "string",
        }],
        setExtcommunitySoos: [{
            community: "string",
        }],
        setFlags: 0,
        setIp6Nexthop: "string",
        setIp6NexthopLocal: "string",
        setIpNexthop: "string",
        setIpPrefsrc: "string",
        setLocalPreference: 0,
        setMetric: 0,
        setMetricType: "string",
        setOrigin: "string",
        setOriginatorId: "string",
        setPriority: 0,
        setRouteTag: 0,
        setTag: 0,
        setVpnv4Nexthop: "string",
        setVpnv6Nexthop: "string",
        setVpnv6NexthopLocal: "string",
        setWeight: 0,
    }],
    vdomparam: "string",
});
Copy
type: fortios:router:Routemap
properties:
    comments: string
    dynamicSortSubtable: string
    getAllTables: string
    name: string
    rules:
        - action: string
          id: 0
          matchAsPath: string
          matchCommunity: string
          matchCommunityExact: string
          matchExtcommunity: string
          matchExtcommunityExact: string
          matchFlags: 0
          matchInterface: string
          matchIp6Address: string
          matchIp6Nexthop: string
          matchIpAddress: string
          matchIpNexthop: string
          matchMetric: 0
          matchOrigin: string
          matchRouteType: string
          matchTag: 0
          matchVrf: 0
          setAggregatorAs: 0
          setAggregatorIp: string
          setAspathAction: string
          setAspaths:
            - as: string
          setAtomicAggregate: string
          setCommunities:
            - community: string
          setCommunityAdditive: string
          setCommunityDelete: string
          setDampeningMaxSuppress: 0
          setDampeningReachabilityHalfLife: 0
          setDampeningReuse: 0
          setDampeningSuppress: 0
          setDampeningUnreachabilityHalfLife: 0
          setExtcommunityRts:
            - community: string
          setExtcommunitySoos:
            - community: string
          setFlags: 0
          setIp6Nexthop: string
          setIp6NexthopLocal: string
          setIpNexthop: string
          setIpPrefsrc: string
          setLocalPreference: 0
          setMetric: 0
          setMetricType: string
          setOrigin: string
          setOriginatorId: string
          setPriority: 0
          setRouteTag: 0
          setTag: 0
          setVpnv4Nexthop: string
          setVpnv6Nexthop: string
          setVpnv6NexthopLocal: string
          setWeight: 0
    vdomparam: string
Copy

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

Comments string
Optional comments.
DynamicSortSubtable string
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
GetAllTables string
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
Name Changes to this property will trigger replacement. string
Name.
Rules List<Pulumiverse.Fortios.Router.Inputs.RoutemapRule>
Rule. The structure of rule block is documented below.
Vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Comments string
Optional comments.
DynamicSortSubtable string
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
GetAllTables string
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
Name Changes to this property will trigger replacement. string
Name.
Rules []RoutemapRuleArgs
Rule. The structure of rule block is documented below.
Vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
comments String
Optional comments.
dynamicSortSubtable String
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
getAllTables String
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
name Changes to this property will trigger replacement. String
Name.
rules List<RoutemapRule>
Rule. The structure of rule block is documented below.
vdomparam Changes to this property will trigger replacement. String
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
comments string
Optional comments.
dynamicSortSubtable string
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
getAllTables string
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
name Changes to this property will trigger replacement. string
Name.
rules RoutemapRule[]
Rule. The structure of rule block is documented below.
vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
comments str
Optional comments.
dynamic_sort_subtable str
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
get_all_tables str
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
name Changes to this property will trigger replacement. str
Name.
rules Sequence[RoutemapRuleArgs]
Rule. The structure of rule block is documented below.
vdomparam Changes to this property will trigger replacement. str
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
comments String
Optional comments.
dynamicSortSubtable String
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
getAllTables String
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
name Changes to this property will trigger replacement. String
Name.
rules List<Property Map>
Rule. The structure of rule block is documented below.
vdomparam Changes to this property will trigger replacement. String
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.

Outputs

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

Get an existing Routemap 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?: RoutemapState, opts?: CustomResourceOptions): Routemap
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        comments: Optional[str] = None,
        dynamic_sort_subtable: Optional[str] = None,
        get_all_tables: Optional[str] = None,
        name: Optional[str] = None,
        rules: Optional[Sequence[RoutemapRuleArgs]] = None,
        vdomparam: Optional[str] = None) -> Routemap
func GetRoutemap(ctx *Context, name string, id IDInput, state *RoutemapState, opts ...ResourceOption) (*Routemap, error)
public static Routemap Get(string name, Input<string> id, RoutemapState? state, CustomResourceOptions? opts = null)
public static Routemap get(String name, Output<String> id, RoutemapState state, CustomResourceOptions options)
resources:  _:    type: fortios:router:Routemap    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Comments string
Optional comments.
DynamicSortSubtable string
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
GetAllTables string
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
Name Changes to this property will trigger replacement. string
Name.
Rules List<Pulumiverse.Fortios.Router.Inputs.RoutemapRule>
Rule. The structure of rule block is documented below.
Vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Comments string
Optional comments.
DynamicSortSubtable string
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
GetAllTables string
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
Name Changes to this property will trigger replacement. string
Name.
Rules []RoutemapRuleArgs
Rule. The structure of rule block is documented below.
Vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
comments String
Optional comments.
dynamicSortSubtable String
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
getAllTables String
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
name Changes to this property will trigger replacement. String
Name.
rules List<RoutemapRule>
Rule. The structure of rule block is documented below.
vdomparam Changes to this property will trigger replacement. String
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
comments string
Optional comments.
dynamicSortSubtable string
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
getAllTables string
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
name Changes to this property will trigger replacement. string
Name.
rules RoutemapRule[]
Rule. The structure of rule block is documented below.
vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
comments str
Optional comments.
dynamic_sort_subtable str
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
get_all_tables str
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
name Changes to this property will trigger replacement. str
Name.
rules Sequence[RoutemapRuleArgs]
Rule. The structure of rule block is documented below.
vdomparam Changes to this property will trigger replacement. str
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
comments String
Optional comments.
dynamicSortSubtable String
Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
getAllTables String
Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
name Changes to this property will trigger replacement. String
Name.
rules List<Property Map>
Rule. The structure of rule block is documented below.
vdomparam Changes to this property will trigger replacement. String
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.

Supporting Types

RoutemapRule
, RoutemapRuleArgs

Action string
Action. Valid values: permit, deny.
Id int
Rule ID.
MatchAsPath string
Match BGP AS path list.
MatchCommunity string
Match BGP community list.
MatchCommunityExact string
Enable/disable exact matching of communities. Valid values: enable, disable.
MatchExtcommunity string
Match BGP extended community list.
MatchExtcommunityExact string
Enable/disable exact matching of extended communities. Valid values: enable, disable.
MatchFlags int
BGP flag value to match (0 - 65535)
MatchInterface string
Match interface configuration.
MatchIp6Address string
Match IPv6 address permitted by access-list6 or prefix-list6.
MatchIp6Nexthop string
Match next hop IPv6 address passed by access-list6 or prefix-list6.
MatchIpAddress string
Match IP address permitted by access-list or prefix-list.
MatchIpNexthop string
Match next hop IP address passed by access-list or prefix-list.
MatchMetric int
Match metric for redistribute routes.
MatchOrigin string
Match BGP origin code. Valid values: none, egp, igp, incomplete.
MatchRouteType string
Match route type.
MatchTag int
Match tag.
MatchVrf int
Match VRF ID.
SetAggregatorAs int
BGP aggregator AS.
SetAggregatorIp string
BGP aggregator IP.
SetAspathAction string
Specify preferred action of set-aspath. Valid values: prepend, replace.
SetAspaths List<Pulumiverse.Fortios.Router.Inputs.RoutemapRuleSetAspath>
Prepend BGP AS path attribute. The structure of set_aspath block is documented below.
SetAtomicAggregate string
Enable/disable BGP atomic aggregate attribute. Valid values: enable, disable.
SetCommunities List<Pulumiverse.Fortios.Router.Inputs.RoutemapRuleSetCommunity>
BGP community attribute. The structure of set_community block is documented below.
SetCommunityAdditive string
Enable/disable adding set-community to existing community. Valid values: enable, disable.
SetCommunityDelete string
Delete communities matching community list.
SetDampeningMaxSuppress int
Maximum duration to suppress a route (1 - 255 min, 0 = unset).
SetDampeningReachabilityHalfLife int
Reachability half-life time for the penalty (1 - 45 min, 0 = unset).
SetDampeningReuse int
Value to start reusing a route (1 - 20000, 0 = unset).
SetDampeningSuppress int
Value to start suppressing a route (1 - 20000, 0 = unset).
SetDampeningUnreachabilityHalfLife int
Unreachability Half-life time for the penalty (1 - 45 min, 0 = unset)
SetExtcommunityRts List<Pulumiverse.Fortios.Router.Inputs.RoutemapRuleSetExtcommunityRt>
Route Target extended community. The structure of set_extcommunity_rt block is documented below.
SetExtcommunitySoos List<Pulumiverse.Fortios.Router.Inputs.RoutemapRuleSetExtcommunitySoo>
Site-of-Origin extended community. The structure of set_extcommunity_soo block is documented below.
SetFlags int
BGP flags value (0 - 65535)
SetIp6Nexthop string
IPv6 global address of next hop.
SetIp6NexthopLocal string
IPv6 local address of next hop.
SetIpNexthop string
IP address of next hop.
SetIpPrefsrc string
IP address of preferred source.
SetLocalPreference int
BGP local preference path attribute.
SetMetric int
Metric value.
SetMetricType string
Metric type.
SetOrigin string
BGP origin code. Valid values: none, egp, igp, incomplete.
SetOriginatorId string
BGP originator ID attribute.
SetPriority int
Priority for routing table.
SetRouteTag int
Route tag for routing table.
SetTag int
Tag value.
SetVpnv4Nexthop string
IP address of VPNv4 next-hop.
SetVpnv6Nexthop string
IPv6 global address of VPNv6 next-hop.
SetVpnv6NexthopLocal string
IPv6 link-local address of VPNv6 next-hop.
SetWeight int
BGP weight for routing table.
Action string
Action. Valid values: permit, deny.
Id int
Rule ID.
MatchAsPath string
Match BGP AS path list.
MatchCommunity string
Match BGP community list.
MatchCommunityExact string
Enable/disable exact matching of communities. Valid values: enable, disable.
MatchExtcommunity string
Match BGP extended community list.
MatchExtcommunityExact string
Enable/disable exact matching of extended communities. Valid values: enable, disable.
MatchFlags int
BGP flag value to match (0 - 65535)
MatchInterface string
Match interface configuration.
MatchIp6Address string
Match IPv6 address permitted by access-list6 or prefix-list6.
MatchIp6Nexthop string
Match next hop IPv6 address passed by access-list6 or prefix-list6.
MatchIpAddress string
Match IP address permitted by access-list or prefix-list.
MatchIpNexthop string
Match next hop IP address passed by access-list or prefix-list.
MatchMetric int
Match metric for redistribute routes.
MatchOrigin string
Match BGP origin code. Valid values: none, egp, igp, incomplete.
MatchRouteType string
Match route type.
MatchTag int
Match tag.
MatchVrf int
Match VRF ID.
SetAggregatorAs int
BGP aggregator AS.
SetAggregatorIp string
BGP aggregator IP.
SetAspathAction string
Specify preferred action of set-aspath. Valid values: prepend, replace.
SetAspaths []RoutemapRuleSetAspath
Prepend BGP AS path attribute. The structure of set_aspath block is documented below.
SetAtomicAggregate string
Enable/disable BGP atomic aggregate attribute. Valid values: enable, disable.
SetCommunities []RoutemapRuleSetCommunity
BGP community attribute. The structure of set_community block is documented below.
SetCommunityAdditive string
Enable/disable adding set-community to existing community. Valid values: enable, disable.
SetCommunityDelete string
Delete communities matching community list.
SetDampeningMaxSuppress int
Maximum duration to suppress a route (1 - 255 min, 0 = unset).
SetDampeningReachabilityHalfLife int
Reachability half-life time for the penalty (1 - 45 min, 0 = unset).
SetDampeningReuse int
Value to start reusing a route (1 - 20000, 0 = unset).
SetDampeningSuppress int
Value to start suppressing a route (1 - 20000, 0 = unset).
SetDampeningUnreachabilityHalfLife int
Unreachability Half-life time for the penalty (1 - 45 min, 0 = unset)
SetExtcommunityRts []RoutemapRuleSetExtcommunityRt
Route Target extended community. The structure of set_extcommunity_rt block is documented below.
SetExtcommunitySoos []RoutemapRuleSetExtcommunitySoo
Site-of-Origin extended community. The structure of set_extcommunity_soo block is documented below.
SetFlags int
BGP flags value (0 - 65535)
SetIp6Nexthop string
IPv6 global address of next hop.
SetIp6NexthopLocal string
IPv6 local address of next hop.
SetIpNexthop string
IP address of next hop.
SetIpPrefsrc string
IP address of preferred source.
SetLocalPreference int
BGP local preference path attribute.
SetMetric int
Metric value.
SetMetricType string
Metric type.
SetOrigin string
BGP origin code. Valid values: none, egp, igp, incomplete.
SetOriginatorId string
BGP originator ID attribute.
SetPriority int
Priority for routing table.
SetRouteTag int
Route tag for routing table.
SetTag int
Tag value.
SetVpnv4Nexthop string
IP address of VPNv4 next-hop.
SetVpnv6Nexthop string
IPv6 global address of VPNv6 next-hop.
SetVpnv6NexthopLocal string
IPv6 link-local address of VPNv6 next-hop.
SetWeight int
BGP weight for routing table.
action String
Action. Valid values: permit, deny.
id Integer
Rule ID.
matchAsPath String
Match BGP AS path list.
matchCommunity String
Match BGP community list.
matchCommunityExact String
Enable/disable exact matching of communities. Valid values: enable, disable.
matchExtcommunity String
Match BGP extended community list.
matchExtcommunityExact String
Enable/disable exact matching of extended communities. Valid values: enable, disable.
matchFlags Integer
BGP flag value to match (0 - 65535)
matchInterface String
Match interface configuration.
matchIp6Address String
Match IPv6 address permitted by access-list6 or prefix-list6.
matchIp6Nexthop String
Match next hop IPv6 address passed by access-list6 or prefix-list6.
matchIpAddress String
Match IP address permitted by access-list or prefix-list.
matchIpNexthop String
Match next hop IP address passed by access-list or prefix-list.
matchMetric Integer
Match metric for redistribute routes.
matchOrigin String
Match BGP origin code. Valid values: none, egp, igp, incomplete.
matchRouteType String
Match route type.
matchTag Integer
Match tag.
matchVrf Integer
Match VRF ID.
setAggregatorAs Integer
BGP aggregator AS.
setAggregatorIp String
BGP aggregator IP.
setAspathAction String
Specify preferred action of set-aspath. Valid values: prepend, replace.
setAspaths List<RoutemapRuleSetAspath>
Prepend BGP AS path attribute. The structure of set_aspath block is documented below.
setAtomicAggregate String
Enable/disable BGP atomic aggregate attribute. Valid values: enable, disable.
setCommunities List<RoutemapRuleSetCommunity>
BGP community attribute. The structure of set_community block is documented below.
setCommunityAdditive String
Enable/disable adding set-community to existing community. Valid values: enable, disable.
setCommunityDelete String
Delete communities matching community list.
setDampeningMaxSuppress Integer
Maximum duration to suppress a route (1 - 255 min, 0 = unset).
setDampeningReachabilityHalfLife Integer
Reachability half-life time for the penalty (1 - 45 min, 0 = unset).
setDampeningReuse Integer
Value to start reusing a route (1 - 20000, 0 = unset).
setDampeningSuppress Integer
Value to start suppressing a route (1 - 20000, 0 = unset).
setDampeningUnreachabilityHalfLife Integer
Unreachability Half-life time for the penalty (1 - 45 min, 0 = unset)
setExtcommunityRts List<RoutemapRuleSetExtcommunityRt>
Route Target extended community. The structure of set_extcommunity_rt block is documented below.
setExtcommunitySoos List<RoutemapRuleSetExtcommunitySoo>
Site-of-Origin extended community. The structure of set_extcommunity_soo block is documented below.
setFlags Integer
BGP flags value (0 - 65535)
setIp6Nexthop String
IPv6 global address of next hop.
setIp6NexthopLocal String
IPv6 local address of next hop.
setIpNexthop String
IP address of next hop.
setIpPrefsrc String
IP address of preferred source.
setLocalPreference Integer
BGP local preference path attribute.
setMetric Integer
Metric value.
setMetricType String
Metric type.
setOrigin String
BGP origin code. Valid values: none, egp, igp, incomplete.
setOriginatorId String
BGP originator ID attribute.
setPriority Integer
Priority for routing table.
setRouteTag Integer
Route tag for routing table.
setTag Integer
Tag value.
setVpnv4Nexthop String
IP address of VPNv4 next-hop.
setVpnv6Nexthop String
IPv6 global address of VPNv6 next-hop.
setVpnv6NexthopLocal String
IPv6 link-local address of VPNv6 next-hop.
setWeight Integer
BGP weight for routing table.
action string
Action. Valid values: permit, deny.
id number
Rule ID.
matchAsPath string
Match BGP AS path list.
matchCommunity string
Match BGP community list.
matchCommunityExact string
Enable/disable exact matching of communities. Valid values: enable, disable.
matchExtcommunity string
Match BGP extended community list.
matchExtcommunityExact string
Enable/disable exact matching of extended communities. Valid values: enable, disable.
matchFlags number
BGP flag value to match (0 - 65535)
matchInterface string
Match interface configuration.
matchIp6Address string
Match IPv6 address permitted by access-list6 or prefix-list6.
matchIp6Nexthop string
Match next hop IPv6 address passed by access-list6 or prefix-list6.
matchIpAddress string
Match IP address permitted by access-list or prefix-list.
matchIpNexthop string
Match next hop IP address passed by access-list or prefix-list.
matchMetric number
Match metric for redistribute routes.
matchOrigin string
Match BGP origin code. Valid values: none, egp, igp, incomplete.
matchRouteType string
Match route type.
matchTag number
Match tag.
matchVrf number
Match VRF ID.
setAggregatorAs number
BGP aggregator AS.
setAggregatorIp string
BGP aggregator IP.
setAspathAction string
Specify preferred action of set-aspath. Valid values: prepend, replace.
setAspaths RoutemapRuleSetAspath[]
Prepend BGP AS path attribute. The structure of set_aspath block is documented below.
setAtomicAggregate string
Enable/disable BGP atomic aggregate attribute. Valid values: enable, disable.
setCommunities RoutemapRuleSetCommunity[]
BGP community attribute. The structure of set_community block is documented below.
setCommunityAdditive string
Enable/disable adding set-community to existing community. Valid values: enable, disable.
setCommunityDelete string
Delete communities matching community list.
setDampeningMaxSuppress number
Maximum duration to suppress a route (1 - 255 min, 0 = unset).
setDampeningReachabilityHalfLife number
Reachability half-life time for the penalty (1 - 45 min, 0 = unset).
setDampeningReuse number
Value to start reusing a route (1 - 20000, 0 = unset).
setDampeningSuppress number
Value to start suppressing a route (1 - 20000, 0 = unset).
setDampeningUnreachabilityHalfLife number
Unreachability Half-life time for the penalty (1 - 45 min, 0 = unset)
setExtcommunityRts RoutemapRuleSetExtcommunityRt[]
Route Target extended community. The structure of set_extcommunity_rt block is documented below.
setExtcommunitySoos RoutemapRuleSetExtcommunitySoo[]
Site-of-Origin extended community. The structure of set_extcommunity_soo block is documented below.
setFlags number
BGP flags value (0 - 65535)
setIp6Nexthop string
IPv6 global address of next hop.
setIp6NexthopLocal string
IPv6 local address of next hop.
setIpNexthop string
IP address of next hop.
setIpPrefsrc string
IP address of preferred source.
setLocalPreference number
BGP local preference path attribute.
setMetric number
Metric value.
setMetricType string
Metric type.
setOrigin string
BGP origin code. Valid values: none, egp, igp, incomplete.
setOriginatorId string
BGP originator ID attribute.
setPriority number
Priority for routing table.
setRouteTag number
Route tag for routing table.
setTag number
Tag value.
setVpnv4Nexthop string
IP address of VPNv4 next-hop.
setVpnv6Nexthop string
IPv6 global address of VPNv6 next-hop.
setVpnv6NexthopLocal string
IPv6 link-local address of VPNv6 next-hop.
setWeight number
BGP weight for routing table.
action str
Action. Valid values: permit, deny.
id int
Rule ID.
match_as_path str
Match BGP AS path list.
match_community str
Match BGP community list.
match_community_exact str
Enable/disable exact matching of communities. Valid values: enable, disable.
match_extcommunity str
Match BGP extended community list.
match_extcommunity_exact str
Enable/disable exact matching of extended communities. Valid values: enable, disable.
match_flags int
BGP flag value to match (0 - 65535)
match_interface str
Match interface configuration.
match_ip6_address str
Match IPv6 address permitted by access-list6 or prefix-list6.
match_ip6_nexthop str
Match next hop IPv6 address passed by access-list6 or prefix-list6.
match_ip_address str
Match IP address permitted by access-list or prefix-list.
match_ip_nexthop str
Match next hop IP address passed by access-list or prefix-list.
match_metric int
Match metric for redistribute routes.
match_origin str
Match BGP origin code. Valid values: none, egp, igp, incomplete.
match_route_type str
Match route type.
match_tag int
Match tag.
match_vrf int
Match VRF ID.
set_aggregator_as int
BGP aggregator AS.
set_aggregator_ip str
BGP aggregator IP.
set_aspath_action str
Specify preferred action of set-aspath. Valid values: prepend, replace.
set_aspaths Sequence[RoutemapRuleSetAspath]
Prepend BGP AS path attribute. The structure of set_aspath block is documented below.
set_atomic_aggregate str
Enable/disable BGP atomic aggregate attribute. Valid values: enable, disable.
set_communities Sequence[RoutemapRuleSetCommunity]
BGP community attribute. The structure of set_community block is documented below.
set_community_additive str
Enable/disable adding set-community to existing community. Valid values: enable, disable.
set_community_delete str
Delete communities matching community list.
set_dampening_max_suppress int
Maximum duration to suppress a route (1 - 255 min, 0 = unset).
set_dampening_reachability_half_life int
Reachability half-life time for the penalty (1 - 45 min, 0 = unset).
set_dampening_reuse int
Value to start reusing a route (1 - 20000, 0 = unset).
set_dampening_suppress int
Value to start suppressing a route (1 - 20000, 0 = unset).
set_dampening_unreachability_half_life int
Unreachability Half-life time for the penalty (1 - 45 min, 0 = unset)
set_extcommunity_rts Sequence[RoutemapRuleSetExtcommunityRt]
Route Target extended community. The structure of set_extcommunity_rt block is documented below.
set_extcommunity_soos Sequence[RoutemapRuleSetExtcommunitySoo]
Site-of-Origin extended community. The structure of set_extcommunity_soo block is documented below.
set_flags int
BGP flags value (0 - 65535)
set_ip6_nexthop str
IPv6 global address of next hop.
set_ip6_nexthop_local str
IPv6 local address of next hop.
set_ip_nexthop str
IP address of next hop.
set_ip_prefsrc str
IP address of preferred source.
set_local_preference int
BGP local preference path attribute.
set_metric int
Metric value.
set_metric_type str
Metric type.
set_origin str
BGP origin code. Valid values: none, egp, igp, incomplete.
set_originator_id str
BGP originator ID attribute.
set_priority int
Priority for routing table.
set_route_tag int
Route tag for routing table.
set_tag int
Tag value.
set_vpnv4_nexthop str
IP address of VPNv4 next-hop.
set_vpnv6_nexthop str
IPv6 global address of VPNv6 next-hop.
set_vpnv6_nexthop_local str
IPv6 link-local address of VPNv6 next-hop.
set_weight int
BGP weight for routing table.
action String
Action. Valid values: permit, deny.
id Number
Rule ID.
matchAsPath String
Match BGP AS path list.
matchCommunity String
Match BGP community list.
matchCommunityExact String
Enable/disable exact matching of communities. Valid values: enable, disable.
matchExtcommunity String
Match BGP extended community list.
matchExtcommunityExact String
Enable/disable exact matching of extended communities. Valid values: enable, disable.
matchFlags Number
BGP flag value to match (0 - 65535)
matchInterface String
Match interface configuration.
matchIp6Address String
Match IPv6 address permitted by access-list6 or prefix-list6.
matchIp6Nexthop String
Match next hop IPv6 address passed by access-list6 or prefix-list6.
matchIpAddress String
Match IP address permitted by access-list or prefix-list.
matchIpNexthop String
Match next hop IP address passed by access-list or prefix-list.
matchMetric Number
Match metric for redistribute routes.
matchOrigin String
Match BGP origin code. Valid values: none, egp, igp, incomplete.
matchRouteType String
Match route type.
matchTag Number
Match tag.
matchVrf Number
Match VRF ID.
setAggregatorAs Number
BGP aggregator AS.
setAggregatorIp String
BGP aggregator IP.
setAspathAction String
Specify preferred action of set-aspath. Valid values: prepend, replace.
setAspaths List<Property Map>
Prepend BGP AS path attribute. The structure of set_aspath block is documented below.
setAtomicAggregate String
Enable/disable BGP atomic aggregate attribute. Valid values: enable, disable.
setCommunities List<Property Map>
BGP community attribute. The structure of set_community block is documented below.
setCommunityAdditive String
Enable/disable adding set-community to existing community. Valid values: enable, disable.
setCommunityDelete String
Delete communities matching community list.
setDampeningMaxSuppress Number
Maximum duration to suppress a route (1 - 255 min, 0 = unset).
setDampeningReachabilityHalfLife Number
Reachability half-life time for the penalty (1 - 45 min, 0 = unset).
setDampeningReuse Number
Value to start reusing a route (1 - 20000, 0 = unset).
setDampeningSuppress Number
Value to start suppressing a route (1 - 20000, 0 = unset).
setDampeningUnreachabilityHalfLife Number
Unreachability Half-life time for the penalty (1 - 45 min, 0 = unset)
setExtcommunityRts List<Property Map>
Route Target extended community. The structure of set_extcommunity_rt block is documented below.
setExtcommunitySoos List<Property Map>
Site-of-Origin extended community. The structure of set_extcommunity_soo block is documented below.
setFlags Number
BGP flags value (0 - 65535)
setIp6Nexthop String
IPv6 global address of next hop.
setIp6NexthopLocal String
IPv6 local address of next hop.
setIpNexthop String
IP address of next hop.
setIpPrefsrc String
IP address of preferred source.
setLocalPreference Number
BGP local preference path attribute.
setMetric Number
Metric value.
setMetricType String
Metric type.
setOrigin String
BGP origin code. Valid values: none, egp, igp, incomplete.
setOriginatorId String
BGP originator ID attribute.
setPriority Number
Priority for routing table.
setRouteTag Number
Route tag for routing table.
setTag Number
Tag value.
setVpnv4Nexthop String
IP address of VPNv4 next-hop.
setVpnv6Nexthop String
IPv6 global address of VPNv6 next-hop.
setVpnv6NexthopLocal String
IPv6 link-local address of VPNv6 next-hop.
setWeight Number
BGP weight for routing table.

RoutemapRuleSetAspath
, RoutemapRuleSetAspathArgs

As string
AS number. Use quotes for repeating numbers, For example, "1 1 2". On FortiOS versions 6.2.0-7.0.0: 0 - 42949672. On FortiOS versions 7.0.1-7.0.3: 0 - 4294967295.
As string
AS number. Use quotes for repeating numbers, For example, "1 1 2". On FortiOS versions 6.2.0-7.0.0: 0 - 42949672. On FortiOS versions 7.0.1-7.0.3: 0 - 4294967295.
as String
AS number. Use quotes for repeating numbers, For example, "1 1 2". On FortiOS versions 6.2.0-7.0.0: 0 - 42949672. On FortiOS versions 7.0.1-7.0.3: 0 - 4294967295.
as string
AS number. Use quotes for repeating numbers, For example, "1 1 2". On FortiOS versions 6.2.0-7.0.0: 0 - 42949672. On FortiOS versions 7.0.1-7.0.3: 0 - 4294967295.
as_ str
AS number. Use quotes for repeating numbers, For example, "1 1 2". On FortiOS versions 6.2.0-7.0.0: 0 - 42949672. On FortiOS versions 7.0.1-7.0.3: 0 - 4294967295.
as String
AS number. Use quotes for repeating numbers, For example, "1 1 2". On FortiOS versions 6.2.0-7.0.0: 0 - 42949672. On FortiOS versions 7.0.1-7.0.3: 0 - 4294967295.

RoutemapRuleSetCommunity
, RoutemapRuleSetCommunityArgs

Community string
Attribute: AA|AA:NN|internet|local-AS|no-advertise|no-export.
Community string
Attribute: AA|AA:NN|internet|local-AS|no-advertise|no-export.
community String
Attribute: AA|AA:NN|internet|local-AS|no-advertise|no-export.
community string
Attribute: AA|AA:NN|internet|local-AS|no-advertise|no-export.
community str
Attribute: AA|AA:NN|internet|local-AS|no-advertise|no-export.
community String
Attribute: AA|AA:NN|internet|local-AS|no-advertise|no-export.

RoutemapRuleSetExtcommunityRt
, RoutemapRuleSetExtcommunityRtArgs

Community string
AA:NN.
Community string
AA:NN.
community String
AA:NN.
community string
AA:NN.
community str
AA:NN.
community String
AA:NN.

RoutemapRuleSetExtcommunitySoo
, RoutemapRuleSetExtcommunitySooArgs

Community string
Community (format = AA:NN).
Community string
Community (format = AA:NN).
community String
Community (format = AA:NN).
community string
Community (format = AA:NN).
community str
Community (format = AA:NN).
community String
Community (format = AA:NN).

Import

Router RouteMap can be imported using any of these accepted formats:

$ pulumi import fortios:router/routemap:Routemap labelname {{name}}
Copy

If you do not want to import arguments of block:

$ export “FORTIOS_IMPORT_TABLE”=“false”

$ pulumi import fortios:router/routemap:Routemap labelname {{name}}
Copy

$ unset “FORTIOS_IMPORT_TABLE”

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

Package Details

Repository
fortios pulumiverse/pulumi-fortios
License
Apache-2.0
Notes
This Pulumi package is based on the fortios Terraform Provider.