Re: lists of lists
Kenneth Gober <[email protected]> Tue, 21 Mar 2017 17:53:32 -0400
| Newsgroups | gmane.os.openbsd.pf |
|---|---|
| Message-ID | <CANHrbpc9ckJ7VB119fViovL8K8m7URBJYpJ5i2wfqvi7u3nFjQ@mail.gmail.com> |
On Tue, Mar 21, 2017 at 12:11 PM, Admin Lewis <[email protected]> wrote: > I have a simple question. Can I use lists of lists on pf.conf configuration > file ? > > my_macro1=192.168.1.1 > my_macro2=192.168.1.2 > my_list1="{ 192.168.1.3 192.168.1.4 }" > my_list2="{ 192.168.1.5 192.168.1.6 }" > > my_list_of_lists="{" $my_macro1 $my_macro2 $my_list1 $my_list2 "}" This should work: my_macro1=192.168.1.1 my_macro2=192.168.1.2 my_list1="192.168.1.3 192.168.1.4" my_list2="192.168.1.5 192.168.1.6" my_list_of_lists="{" $my_macro1 $my_macro2 $my_list1 $my_list2 "}" This avoids nesting the curly braces, which makes the result simply a list rather than a list of lists. -ken