Skip to content

Unable to add NAT cloud after configuring “allowed_interfaces” in configuration file #2508

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

Closed
zccing opened this issue Mar 4, 2025 · 1 comment

Comments

@zccing
Copy link

zccing commented Mar 4, 2025

After configuring “allowed_interfaces” in the configuration file, the NAT cloud cannot be added with the following error:
Image

I recovered by modifying the judgment condition here.
I'm not sure this is the most elegant solution.

def __init__(self, name, node_id, project, manager, ports=None):

        allowed_interfaces = Config.instance().settings.Server.allowed_interfaces
        if allowed_interfaces and isinstance(allowed_interfaces, str):
            allowed_interfaces = allowed_interfaces.split(',')
@grossmj grossmj moved this from Triage to Todo in GNS3 tracking Mar 4, 2025
grossmj added a commit that referenced this issue Apr 16, 2025
@grossmj
Copy link
Member

grossmj commented Apr 16, 2025

I have added your patch. Thanks again.

@grossmj grossmj closed this as completed Apr 16, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in GNS3 tracking Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants