diff --git a/ipv6ula/forms.py b/ipv6ula/forms.py index 5be0447..0800a9f 100644 --- a/ipv6ula/forms.py +++ b/ipv6ula/forms.py @@ -12,3 +12,8 @@ class ULAForm(forms.ModelForm): validate_ula_prefix(prefix) return prefix + +class ULAGenerateForm(forms.ModelForm): + class Meta: + model = ULA + fields = [ 'name', 'organization', 'website' ] diff --git a/ipv6ula/templates/ipv6ula/base.html b/ipv6ula/templates/ipv6ula/base.html index d8870d4..8f50a7a 100644 --- a/ipv6ula/templates/ipv6ula/base.html +++ b/ipv6ula/templates/ipv6ula/base.html @@ -22,7 +22,10 @@
+ You submit an existing prefix. Please follow the + RFC4193 + rules for generation (basically: use a random network, do not + pick "cool numbers" as they will clash with somebody else in + the future). +
+ {% elif method == 'generate' %} ++ A new random prefix will be generated for you. +
+ {% endif %}All ULA prefixes are /48 networks. Simply add the first IP address (without any netmask, for instance fd23:2323:2323::). - You can choose the name of your liking and an optional - organization name. + You can choose the name of your liking and an organization name.
- ULA prefixes must be part of the fd00::/8 network. + ULA prefixes are always subnets of the fd00::/8 network.