Works again for hosts after commit 4dbf6dbf.
Test cases for duplicate IP and range.

And better variable names.
Renamed sub link_interfaces1 to link_interfaces.
Comment at bridged interface.
Better warn message.
More test cases for loopback interfaces.
Set {semi_managed} in add_pathrestriction.