» fortios_networking_route_static
Provides a resource to configure static route of FortiOS.
» Example Usage
provider "fortios" {
hostname = "54.226.179.231"
token = "jn3t3Nw7qckQzt955Htkfj5hwQ6jdb"
}
resource "fortios_networking_route_static" "test1" {
dst = "110.2.2.122/32"
gateway = "2.2.2.2"
blackhole = "disable"
distance = "22"
weight = "3"
priority = "3"
device = "port2"
comment = "Terraform test"
}
» Argument Reference
The following arguments are supported:
-
dst
- (Required) Destination IP and mask for this route. -
gateway
- (Required) Gateway IP for this route. -
blackhole
- Enable/disable black hole. -
distance
- Administrative distance. -
weight
- Administrative weight. -
priority
- Administrative priority. -
device
- (Required) Gateway out interface or tunnel. -
comment
- Optional comments.
» Attributes Reference
The following attributes are exported:
-
id
- The ID of the static route item. -
dst
- Destination IP and mask for this route. -
gateway
- Gateway IP for this route. -
blackhole
- Enable/disable black hole. -
distance
- Administrative distance. -
weight
- Administrative weight. -
priority
- Administrative priority. -
device
- Gateway out interface or tunnel. -
comment
- Optional comments.