This reverts commit
c105db87995ecee180771bc55f4d43a37efed9bd.
apparently adding local tlvs breaks the wimax tests.
Error : src/tests/keywords/wimax[7]: Failed parsing attribute reference &26.24757.84.9.5.7 - Parent type of nested attribute 26 must be of type "struct", "tlv", "vendor", "vsa" or "group", got "octets"
Error : src/tests/keywords/wimax[7]: &26.24757.84.9.5.7
Error : src/tests/keywords/wimax[7]: ^
arguably the error is correct. but in the interest of making CI
pass, and not annoying others, we just disable the failing test
for now
+++ /dev/null
-#
-# PRE: foreach
-#
-# Loop over children of a TLV.
-#
-# Note that the only data types compatible with all data types are "string" or "octets"
-#
-string out
-
-&my-tlv := {
- &a = 1
- &b = 2
- &c = "foo"
- &d = 127.0.0.1
-}
-
-
-&out = ""
-
-#
-# Home-brew concat!
-#
-foreach string child (&my-tlv.[*]) {
- &out += &child
- &out += " "
-}
-
-#
-# Sad trailing space, but we can delete it!
-#
-&out -= ' '
-
-if (&out != '1 2 foo 127.0.0.1') {
- test_fail
-}
-
-success
type = Access-Request
}
- dictionary {
- tlv my-tlv {
- uint32 a
- uint32 b
- string c
- ipaddr d
- }
- }
-
recv Access-Request {
&control.Password.Cleartext := "hello"