Refactor ns.py so that RO uses the IP profile as it comes from LCM