test_fail
}
+#
+# Check decoding and encoding with a root context
+#
+if (%dhcpv4.decode(Vendor-Specific-Options, Decoded-Option-43.Broadband-Forum) != 2) {
+ test_fail
+}
+
+if (Decoded-Option-43.Broadband-Forum.ACS-URL != 'https://1.2.3.4:7547/') {
+ test_fail
+}
+if (Decoded-Option-43.Broadband-Forum.Provisioning-Code != 'test') {
+ test_fail
+}
+
+reply.Decoded-Option-43.Broadband-Forum = {
+ ACS-URL = 'https://example.com/',
+ CWMP-Retry-Minimum-Interval = '10 seconds'
+}
+
+debug_reply
+
+test_octets := %dhcpv4.encode(reply.Decoded-Option-43.Broadband-Forum, Decoded-Option-43.Broadband-Forum)
+
+if (test_octets != 0x011468747470733a2f2F6578616d706C652e636f6D2f030a3130207365636F6e6473) {
+ test_fail
+}
+
+reply -= Decoded-Option-43
+
success