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

Fix bug in new agent API #151

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

yuvalrakavy
Copy link

It is valid to create multiple agents with the same IP address. Remove test that did not allow this.

In the console, it is perfectly legal (and make sense). For example, creating an agent for each switch port. All the agents will refer to the same switch IP address

It is valid to create multiple agents with the same IP address. Remove test that did not allow this.

 In the console, it is perfectly legal (and make sense). For example, creating an agent for each switch port. All the agents will refer to the same switch IP address
@yuvalrakavy
Copy link
Author

I am writing a python script that adds agents (and modules) for each switch port. In the console, it works with no problem. However, when I tried to do using the API, I got an error that the agent cannot be created since the IP address is already used.

It seems that this is a bug (I don't understand what case you did try to prevent, but the code did not make sense)

I hope that I am right, at least for me it is working...

This bug caused group filtering was always applied
@yuvalrakavy
Copy link
Author

I have fixed yet another bug in get_all_agents

Unless there was a group filter, nothing was returned (or all agents were returned if the API invocation URL had no 'other' field

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

Successfully merging this pull request may close these issues.

None yet

1 participant