vty: Move the assumption of the config nodes into a function

Move the assumption that something is a child of the CONFIG_NODE
into a new function. The next step will be to use something else
for that.
1 file changed