jeremmfr / terraform-provider-junos

Terraform provider for Junos devices
https://registry.terraform.io/providers/jeremmfr/junos
MIT License
61 stars 22 forks source link

Feature request: add support for storm-control #574

Closed NikitaPuglachenko closed 9 months ago

NikitaPuglachenko commented 10 months ago

Description

Add support for storm-control

New or Affected Resource(s)

Exist: junos_interface_physical New: junos_forwardingoptions_storm_control_profile

Potential Terraform Configuration

resource "junos_interface_physical" "interface_physical_ae" {
  ...
  storm_control               = "profile_name"  # Optional, String
  ...
}
resource "junos_forwardingoptions_storm_control_profile" "storm_control_profile_demo" {
  action-shutdown             = false           # Optional, Boolean, (true | false)
  all {                                         # Optional, Block
    bandwidth-level           = 100             # Optional, Number,  (100..100000000 kbps)
    bandwidth-percentage      = 1               # Optional, Number,  (1..100)
    burst-size                = 1500            # Optional, Number,  (1500..100000000 bytes)
    no-broadcast              = false           # Optional, Boolean, (true | false)
    no-multicast              = false           # Optional, Boolean, (true | false)
    no-registered-multicast   = false           # Optional, Boolean, (true | false)
    no-unknown-unicast        = false           # Optional, Boolean, (true | false)
    no-unregistered-multicast = false           # Optional, Boolean, (true | false)
  }
}

References

https://www.juniper.net/documentation/us/en/software/junos/security-services/topics/ref/statement/storm-control-edit-interfaces.html https://www.juniper.net/documentation/us/en/software/junos/security-services/topics/ref/statement/storm-control-profiles-rate-limiting.html

MrDaGree commented 10 months ago

I would love if this could be added as well

jeremmfr commented 10 months ago

Hi 👋

I will take care of adding this.