Call a function from network_interface_api instead of dublicate it

Change-Id: Ie3c42a52e7fc2ce610027164f34bf0e99b17c385