From: Arran Cudbard-Bell Date: Fri, 12 Feb 2021 01:14:01 +0000 (+0000) Subject: Add dictionary pull request template X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=84da579c9346bfc2fda1066db1cd035c938e8caa;p=thirdparty%2Ffreeradius-server.git Add dictionary pull request template --- diff --git a/.github/PULL_REQUEST_TEMPLATE/dictionary.md b/.github/PULL_REQUEST_TEMPLATE/dictionary.md new file mode 100644 index 00000000000..a955fc0414e --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/dictionary.md @@ -0,0 +1,90 @@ +--- +name: Dictionary updates +about: Used to submit changes for vendor dictionaries or standards dictionaries +--- + +For dictionary changes please open pull requests for both the `master` and `v3.0.x` branches +following the submission checklists below. + +*Note: The attribute referencing syntax in `master` has changed. When referencing nested +attributes such as VSAs or TLVs the complete path is used. The reference string +for the `Option-Request` attribute in the example below would be +`Vendor-Specific.CableLabs.Option-Request`. +This is why attribute prefixes are NOT used in the `master` branch.* + +# Submission checklist `master` branch + +- [ ] Vendor prefix ***NOT*** added for `vendor` attributes + +**Good** +```text +VENDOR CableLabs 4491 +BEGIN-VENDOR CableLabs +ATTRIBUTE Option-Request 1 octets +``` +**Bad** +```text +VENDOR CableLabs 4491 +BEGIN-VENDOR CableLabs +ATTRIBUTE CableLabs-Option-Request 1 octets +``` +- [ ] Parent prefix ***NOT*** added for `tlv` attributes + +**Good** +```text +ATTRIBUTE DPSK-Params 153 tlv +ATTRIBUTE AKM-Suite .1 octets +ATTRIBUTE Cipher .2 byte +ATTRIBUTE Anonce .3 octets +ATTRIBUTE EAPOL-Key-Frame .4 octets +``` +**Bad** +```text +ATTRIBUTE DPSK-Params 153 tlv +ATTRIBUTE DPSK-Params-AKM-Suite .1 octets +ATTRIBUTE DPSK-Params-Cipher .2 byte +ATTRIBUTE DPSK-Params-Anonce .3 octets +ATTRIBUTE DPSK-Params-EAPOL-Key-Frame .4 octets +``` +- [ ] Dictionary tested by starting the server with the new dictionary loaded (`radiusd -C`). +- [ ] Dictionary run through [format.pl](https://github.com/FreeRADIUS/freeradius-server/blob/master/scripts/dict/format.pl) (`scripts/dict/format.pl `). +- [ ] **New dictionaries only** - Dictionary added to the include list in the top level `dictionary` file of the protocol dictionary. + + +# Submission checklist `v3.0.x` branch +- [ ] Vendor prefix added for `vendor` attributes + +**Good** +```text +VENDOR CableLabs 4491 +BEGIN-VENDOR CableLabs +ATTRIBUTE CableLabs-Option-Request 1 octets +``` +**Bad** +```text +VENDOR CableLabs 4491 +BEGIN-VENDOR CableLabs +ATTRIBUTE Option-Request 1 octets +``` + +- [ ] Parent prefix added for `tlv` attributes + +**Good** +```text +ATTRIBUTE DPSK-Params 153 tlv +ATTRIBUTE DPSK-Params-AKM-Suite .1 octets +ATTRIBUTE DPSK-Params-Cipher .2 byte +ATTRIBUTE DPSK-Params-Anonce .3 octets +ATTRIBUTE DPSK-Params-EAPOL-Key-Frame .4 octets +``` +**Bad** +```text +ATTRIBUTE DPSK-Params 153 tlv +ATTRIBUTE AKM-Suite .1 octets +ATTRIBUTE Cipher .2 byte +ATTRIBUTE Anonce .3 octets +ATTRIBUTE EAPOL-Key-Frame .4 octets +``` +- [ ] Dictionary tested by starting the server with the new dictionary loaded (`radiusd -C`). +- [ ] Dictionary run through [format.pl](https://github.com/FreeRADIUS/freeradius-server/blob/v3.0.x/share/format.pl) (`share/format.pl `). +- [ ] **New dictionaries only** - Dictionary added to the include list in the top level `dictionary` file of the protocol dictionary.