Skip to content

Commit

Permalink
Merge pull request #3 from Ujstor/clean-nonstatic-ds
Browse files Browse the repository at this point in the history
ingress_priority & random
  • Loading branch information
danielnachtrub authored Aug 12, 2024
2 parents 3fa5dd2 + 113cdb5 commit 7f41906
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 3 deletions.
6 changes: 6 additions & 0 deletions docs/data-sources/ip_firewall.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Read-Only:
- `in_bridge_port_list` (String)
- `in_interface` (String)
- `in_interface_list` (String)
- `ingress_priority` (Number)
- `invalid` (Boolean)
- `ipsec_policy` (String)
- `ipv4_options` (String)
Expand Down Expand Up @@ -140,6 +141,7 @@ Read-Only:
- `port` (String)
- `protocol` (String)
- `psd` (String)
- `random` (Number)
- `route_dst` (String)
- `routing_mark` (String)
- `src_address` (String)
Expand Down Expand Up @@ -191,6 +193,7 @@ Read-Only:
- `in_bridge_port_list` (String)
- `in_interface` (String)
- `in_interface_list` (String)
- `ingress_priority` (Number)
- `invalid` (Boolean)
- `ipsec_policy` (String)
- `ipv4_options` (String)
Expand All @@ -211,6 +214,7 @@ Read-Only:
- `priority` (Number)
- `protocol` (String)
- `psd` (String)
- `random` (Number)
- `routing_mark` (String)
- `same_not_by_dst` (Boolean)
- `src_address` (String)
Expand Down Expand Up @@ -264,6 +268,7 @@ Read-Only:
- `in_bridge_port_list` (String)
- `in_interface` (String)
- `in_interface_list` (String)
- `ingress_priority` (Number)
- `invalid` (Boolean)
- `ipsec_policy` (String)
- `ipv4_options` (String)
Expand All @@ -284,6 +289,7 @@ Read-Only:
- `priority` (Number)
- `protocol` (String)
- `psd` (String)
- `random` (Number)
- `reject_with` (String)
- `routing_mark` (String)
- `routing_table` (String)
Expand Down
2 changes: 2 additions & 0 deletions docs/data-sources/ipv6_firewall.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Read-Only:
- `in_bridge_port_list` (String)
- `in_interface` (String)
- `in_interface_list` (String)
- `ingress_priority` (Number)
- `invalid` (Boolean)
- `ipsec_policy` (String)
- `limit` (String)
Expand All @@ -66,6 +67,7 @@ Read-Only:
- `port` (String)
- `priority` (Number)
- `protocol` (String)
- `random` (Number)
- `reject_with` (String)
- `routing_mark` (String)
- `routing_table` (String)
Expand Down
4 changes: 1 addition & 3 deletions routeros/datasource_ip_firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ func DatasourceIPFirewall() *schema.Resource {
- rules (aka filter)
`,
Schema: map[string]*schema.Schema{
MetaSkipFields: PropSkipFields(
"ingress_priority", "packets", "random",
),
MetaSkipFields: PropSkipFields("packets"),

"address_list": getIPFirewallAddrListSchema(),
"mangle": getIPFirewallMangleSchema(),
Expand Down
8 changes: 8 additions & 0 deletions routeros/datasource_ip_firewall_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ func getIPFirewallFilterSchema() *schema.Schema {
Type: schema.TypeString,
Computed: true,
},
"ingress_priority": {
Type: schema.TypeInt,
Computed: true,
},
"invalid": {
Type: schema.TypeBool,
Computed: true,
Expand Down Expand Up @@ -210,6 +214,10 @@ func getIPFirewallFilterSchema() *schema.Schema {
Type: schema.TypeString,
Computed: true,
},
"random": {
Type: schema.TypeInt,
Computed: true,
},
"reject_with": {
Type: schema.TypeString,
Computed: true,
Expand Down
8 changes: 8 additions & 0 deletions routeros/datasource_ip_firewall_mangle.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ func getIPFirewallMangleSchema() *schema.Schema {
Type: schema.TypeString,
Computed: true,
},
"ingress_priority": {
Type: schema.TypeInt,
Computed: true,
},
"invalid": {
Type: schema.TypeBool,
Computed: true,
Expand Down Expand Up @@ -184,6 +188,10 @@ func getIPFirewallMangleSchema() *schema.Schema {
Type: schema.TypeString,
Computed: true,
},
"random": {
Type: schema.TypeInt,
Computed: true,
},
"new_routing_mark": {
Type: schema.TypeString,
Computed: true,
Expand Down
8 changes: 8 additions & 0 deletions routeros/datasource_ip_firewall_nat.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ func getIPFirewallNatSchema() *schema.Schema {
Type: schema.TypeString,
Computed: true,
},
"ingress_priority": {
Type: schema.TypeInt,
Computed: true,
},
"invalid": {
Type: schema.TypeBool,
Computed: true,
Expand Down Expand Up @@ -204,6 +208,10 @@ func getIPFirewallNatSchema() *schema.Schema {
Type: schema.TypeString,
Computed: true,
},
"random": {
Type: schema.TypeInt,
Computed: true,
},
"routing_mark": {
Type: schema.TypeString,
Computed: true,
Expand Down
8 changes: 8 additions & 0 deletions routeros/datasource_ipv6_firewall_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ func getIPv6FirewallFilterSchema() *schema.Schema {
Type: schema.TypeString,
Computed: true,
},
"ingress_priority": {
Type: schema.TypeInt,
Computed: true,
},
"invalid": {
Type: schema.TypeBool,
Computed: true,
Expand Down Expand Up @@ -178,6 +182,10 @@ func getIPv6FirewallFilterSchema() *schema.Schema {
Type: schema.TypeString,
Computed: true,
},
"random": {
Type: schema.TypeInt,
Computed: true,
},
"reject_with": {
Type: schema.TypeString,
Computed: true,
Expand Down

0 comments on commit 7f41906

Please sign in to comment.