]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
note that giving flat lists results in us creating nested ones
authorAlan T. DeKok <aland@freeradius.org>
Wed, 6 Sep 2023 18:05:09 +0000 (14:05 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 6 Sep 2023 21:13:38 +0000 (17:13 -0400)
src/tests/unit/protocols/dhcpv4/vendor.txt

index b2f89964f3c73665225dabb40e6dcbc0c967a4ca..eb0bc04928105e17c2d4fe58f2fa006e4579da90 100644 (file)
@@ -5,6 +5,14 @@ proto dhcpv4
 proto-dictionary dhcpv4
 fuzzer-out dhcpv4
 
+migrate pair_legacy_nested=true
+
+#
+#  When the caller gives us flat lists, we create nested ones.
+#
+pair V-I-Vendor-Specific.Cisco.Indirect-Image-Filename = "aa.txt", V-I-Vendor-Specific.Cisco.Indirect-Image-Filename = "bb.txt"
+match V-I-Vendor-Specific = { Cisco = { Indirect-Image-Filename = "aa.txt", Indirect-Image-Filename = "bb.txt" } }
+
 encode-pair V-I-Vendor-Specific.Cisco.Indirect-Image-Filename = "aa.txt"
 match 7d 0d 00 00 00 09 08 05 06 61 61 2e 74 78 74
 
@@ -30,4 +38,4 @@ decode-pair 7d 0d 00 00 00 09 09 05 06 61 61 2e 74 78 74
 match V-I-Vendor-Specific = { raw.Cisco = 0x09050661612e747874 }
 
 count
-match 17
+match 20