Make dependency on netaddr optional

https://review.openstack.org/#/c/38023/ pointed out that
the dependency on netaddr is unnecessary and can be avoided.
Use try_import to avoid a hard dependency on netaddr.

Change-Id: I8b246f20f9001379fcb5ca3a84aabee3847cb945