uint32 test_integer1
uint32 test_integer2
uint32 test_integer3
+group test_group
&test_integer1 += 4
if !(&test_integer1 == 4) {
test_fail
}
-&Tmp-Group-0 += {
+&test_group += {
&Filter-Id = "foo"
}
-if !&Tmp-Group-0 {
+if !&test_group {
test_fail
}
-if !(&Tmp-Group-0.Filter-Id == "foo") {
+if !(&test_group.Filter-Id == "foo") {
test_fail
}
#
# PRE: edit-leaf-star
#
-&Tmp-Group-0.NAS-Port := { 1, 3, 5, 7, 11 }
+group test_group1
+group test_group2
+
+&test_group1.NAS-Port := { 1, 3, 5, 7, 11 }
&Port-Limit := 0
#
# Do operations on sets of inputs.
#
-&Port-Limit += &Tmp-Group-0.NAS-Port[*]
+&Port-Limit += &test_group1.NAS-Port[*]
if (!(&Port-Limit == 27)) {
test_fail
}
-&Tmp-Group-1 := &Tmp-Group-0
+&test_group2 := &test_group1
&Port-Limit := 0
-&Port-Limit += &Tmp-Group-1.NAS-Port[*]
+&Port-Limit += &test_group2.NAS-Port[*]
if (!(&Port-Limit == 27)) {
test_fail
}