Skip to content

Commit 2f758a4

Browse files
committed
fix(networking): update CIDR range hint for subnet creation form
1 parent 7cc1c15 commit 2f758a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/networking/app/views/networking/networks/new.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
= f.simple_fields_for :subnets do |subnets|
1919
= subnets.input :name, { label: "#{Networking::Subnet.human_attribute_name(:name)}", input_html: { value: @subnet.try(:name) } }
2020
= # subnets.input :cidr, icon_hint: "Allowed network ranges please check #{link_to 'here', "https://netbox.global.cloud.sap/ipam/prefixes/?mask_length__lte=&q=&within_include=&fami[…]ngth=&present_in_vrf_id=&is_pool=&tag=cc-net-tenant-range", {target: :_blank}}", label: "#{Networking::Subnet.human_attribute_name(:cidr)}", input_html: { value: @subnet.try(:cidr) }
21-
- hint = @domain_config&.check_cidr_range? ? "Must be within a valid CIDR range starting with 10.180 (e.g., 10.180.0.0/16)" : "Should be a valid CIDR range, such as /16 (e.g., 10.10.10.10/16)"
21+
- hint = @domain_config&.check_cidr_range? ? "Must be within a valid CIDR range starting with 10.180 (e.g., 10.180.0.0/16)" : "Should be a valid CIDR range, such as /24 (e.g., 10.10.10.0/24)"
2222
= subnets.input :cidr, icon_hint: hint, label: "#{Networking::Subnet.human_attribute_name(:cidr)}", input_html: { value: @subnet.try(:cidr) }
2323
.buttons{class: modal? ? 'modal-footer' : ''}
2424
- if modal?

0 commit comments

Comments
 (0)