Reworked for multi-selectable interfaces.

Updated code to account for policies with multiple interfaces
selected.
Check if vdoms are enabled.

Updated code to check first line of config for vdom=1. Skip over
logic for vdom if it's not.
Merge branch 'no_vdom'