import sys
import os
import utilities

# Añadir el directorio del SDK al PYTHONPATH usando una ruta relativa
script_dir = os.path.dirname(os.path.abspath(__file__))  # Directorio actual del script
sdk_path = os.path.join(script_dir, '..', 'sdk')  # Subir un nivel y apuntar a 'sdk'
sys.path.insert(0, sdk_path)


from sdk import CAPIFProviderConnector

def offboard_capif_nef_connector():
    """
    """
    capif_connector = CAPIFProviderConnector(config_file=utilities.get_config_file())
    capif_connector.offboard_and_deregister_nef()
    print("COMPLETED")

if __name__ == "__main__":
    offboard_capif_nef_connector()
