Skip to content

Commit

Permalink
fix(#106): Add igmp settings to bridge resource
Browse files Browse the repository at this point in the history
  • Loading branch information
gfenn-newbury committed Feb 17, 2023
1 parent 65be38b commit a837637
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions routeros/resource_interface_bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ func ResourceInterfaceBridge() *schema.Resource {
Description: "Enables multicast group and port learning to prevent multicast traffic from flooding all " +
"interfaces in a bridge.",
},
"igmp_version": {
Type: schema.TypeInt,
Optional: true,
Description: "If IGMP snooping is enabled, this sets the version of IGMP to use",
},
"ingress_filtering": {
Type: schema.TypeBool,
Optional: true,
Expand All @@ -86,6 +91,16 @@ func ResourceInterfaceBridge() *schema.Resource {
"vlan-filtering is set to yes.",
},
KeyL2Mtu: PropL2MtuRo,
"last_member_interval": {
Type: schema.TypeString,
Optional: true,
Description: "If IGMP snooping is enabled, this is the interval that the last member was seen.",
},
"last_member_query_count": {
Type: schema.TypeString,
Optional: true,
Description: "If IGMP snooping is enabled, this is the query count of the last member.",
},
"mac_address": {
Type: schema.TypeString,
Computed: true,
Expand All @@ -97,6 +112,10 @@ func ResourceInterfaceBridge() *schema.Resource {
Description: "Changes the Max Age value in BPDU packets, which is transmitted by the root bridge. " +
"This property only has effect when protocol-mode is set to stp or rstp. Value: 6s..40s",
},
"membership_interval": {
Type: schema.TypeString,
Optional: true,
},
"mtu": {
Type: schema.TypeString,
Optional: true,
Expand All @@ -107,6 +126,14 @@ func ResourceInterfaceBridge() *schema.Resource {
"of the bridge (set by the mtu property), then manually set value will be ignored and the bridge " +
"will act as if mtu=auto is set.",
},
"multicast_querier": {
Type: schema.TypeBool,
Optional: true,
},
"multicast_router": {
Type: schema.TypeString,
Optional: true,
},
KeyName: PropNameRw,
"priority": {
Type: schema.TypeString,
Expand All @@ -133,6 +160,26 @@ func ResourceInterfaceBridge() *schema.Resource {
ValidateFunc: validation.IntBetween(1, 4094),
},
KeyRunning: PropRunningRo,
"querier_interval": {
Type: schema.TypeString,
Optional: true,
},
"query_interval": {
Type: schema.TypeString,
Optional: true,
},
"query_response_interval": {
Type: schema.TypeString,
Optional: true,
},
"startup_query_count": {
Type: schema.TypeInt,
Optional: true,
},
"startup_query_interval": {
Type: schema.TypeString,
Optional: true,
},
"transmit_hold_count": {
Type: schema.TypeInt,
Optional: true,
Expand Down

0 comments on commit a837637

Please sign in to comment.