-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
examples/resources/routeros_interface_ethernet_switch_host/import.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#The ID can be found via API or the terminal | ||
#The command for the terminal is -> :put [/interface/ethernet/switch/host get [print show-ids]] | ||
terraform import routeros_interface_ethernet_switch_host.test *0 |
6 changes: 6 additions & 0 deletions
6
examples/resources/routeros_interface_ethernet_switch_host/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
resource "routeros_interface_ethernet_switch_host" "test" { | ||
switch = "switch1" | ||
mac_address = "00:00:00:00:00:00" | ||
ports = ["ether1"] | ||
mirror = true | ||
} |
3 changes: 3 additions & 0 deletions
3
examples/resources/routeros_interface_ethernet_switch_port/import.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#The ID can be found via API or the terminal | ||
#The command for the terminal is -> :put [/interface/ethernet/switch/port get [print show-ids]] | ||
terraform import routeros_interface_ethernet_switch_port.test *1 |
4 changes: 4 additions & 0 deletions
4
examples/resources/routeros_interface_ethernet_switch_port/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
resource "routeros_interface_ethernet_switch_port" "test" { | ||
name = "ether1" | ||
vlan_mode = "check" | ||
} |
3 changes: 3 additions & 0 deletions
3
examples/resources/routeros_interface_ethernet_switch_port_isolation/import.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#The ID can be found via API or the terminal | ||
#The command for the terminal is -> :put [/interface/ethernet/switch/port-isolation get [print show-ids]] | ||
terraform import routeros_interface_ethernet_switch_port_isolation.test *1 |
4 changes: 4 additions & 0 deletions
4
examples/resources/routeros_interface_ethernet_switch_port_isolation/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
resource "routeros_interface_ethernet_switch_port_isolation" "test" { | ||
name = "ether1" | ||
forwarding_override = "ether1" | ||
} |
3 changes: 3 additions & 0 deletions
3
examples/resources/routeros_interface_ethernet_switch_rule/import.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#The ID can be found via API or the terminal | ||
#The command for the terminal is -> :put [/interface/ethernet/switch/rule get [print show-ids]] | ||
terraform import routeros_interface_ethernet_switch_rule.test *0 |
5 changes: 5 additions & 0 deletions
5
examples/resources/routeros_interface_ethernet_switch_rule/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
resource "routeros_interface_ethernet_switch_rule" "test" { | ||
switch = "switch1" | ||
ports = ["ether1"] | ||
copy_to_cpu = true | ||
} |
3 changes: 3 additions & 0 deletions
3
examples/resources/routeros_interface_ethernet_switch_vlan/import.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#The ID can be found via API or the terminal | ||
#The command for the terminal is -> :put [/interface/ethernet/switch/vlan get [print show-ids]] | ||
terraform import routeros_interface_ethernet_switch_vlan.test *0 |
6 changes: 6 additions & 0 deletions
6
examples/resources/routeros_interface_ethernet_switch_vlan/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
resource "routeros_interface_ethernet_switch_vlan" "test" { | ||
switch = "switch1" | ||
ports = ["ether1"] | ||
vlan_id = 10 | ||
independent_learning = true | ||
} |