Add unifi_static_route

Fixes #42
This commit is contained in:
Paul Tyng
2021-03-27 16:56:33 -04:00
parent 118f612b49
commit 8c315dc5ce
6 changed files with 424 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
resource "unifi_static_route" "nexthop" {
type = "nexthop-route"
network = "172.17.0.0/16"
name = "basic nexthop"
distance = 1
next_hop = "172.16.0.1"
}
resource "unifi_static_route" "blackhole" {
type = "blackhole"
network = var.blackhole_cidr
name = "blackhole traffice to cidr"
distance = 1
}
resource "unifi_static_route" "interface" {
type = "interface-route"
network = var.wan2_cidr
name = "send traffic over wan2"
distance = 1
interface = "WAN2"
}