diff --git a/netbox/utilities/forms.py b/netbox/utilities/forms.py index 3be038160..d21306d40 100644 --- a/netbox/utilities/forms.py +++ b/netbox/utilities/forms.py @@ -61,6 +61,7 @@ def parse_numeric_range(string, base=10): values.extend(range(begin, end)) return list(set(values)) + def expand_numeric_pattern(string): """ Expand a numeric pattern into a list of strings. Examples: @@ -76,6 +77,7 @@ def expand_numeric_pattern(string): else: yield "{}{}{}".format(lead, i, remnant) + def expand_ipaddress_pattern(string, family): """ Expand an IP address pattern into a list of strings. Examples: