Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting external generic systems #38

Open
abdulrahmanAbduatif opened this issue Sep 11, 2022 · 0 comments
Open

Deleting external generic systems #38

abdulrahmanAbduatif opened this issue Sep 11, 2022 · 0 comments

Comments

@abdulrahmanAbduatif
Copy link

abdulrahmanAbduatif commented Sep 11, 2022

Hello,

I'm trying to delete external generic systems, and I'm getting an error that the link is "Generic system with ID ySJSF_zvEuRX8mgTLU4 can not be deleted while it has attached links"

I could not find any function to delete the links. below is my code

for gsnode in generics:
        try:
            for key in bp_nodes:
                # deleting the external generic systems
                if bp_nodes[key]['hostname'] == gsnode['gsname']:
                    print('deleteing ',bp_nodes[key]['hostname'])

                    aos.blueprint.delete_external_generic_system(
                        bp_id=bp.id,
                        node_id=bp_nodes[key]['id'],
                    )
                    print('deleted ', bp_nodes[key]['hostname'])

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant