network scripts: properly maintain the network state's list of assigned interfaces