I want to do something along the lines of:
set /files/etc/exports/dir[. = '/export/home'][client = '10.0.0.0/8'] /export/home set /files/etc/exports/dir[. = '/export/home'][client = '10.0.0.0/8']/client 10.0.0.0/8
What happens if I run the above is that the second command creates yet another new node, without any dir value set. My challenge is that /export/home share is not a unique dir, as clients are added on new lines for readability. I need both dir and client search options to find a unique node.
How can I reference the (maybe) newly created node in command 1, such that the end result is: