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

Batfish agent #33

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

Batfish agent #33

wants to merge 2 commits into from

Conversation

Laur04
Copy link

@Laur04 Laur04 commented Jan 9, 2023

The docker-compose file had to be modified from the typical agent format because batfish itself has to run inside a docker container and the agent containers can't talk individually to other containers. I reconfigured it so that the batfish agent runs inside the same container as the batfish server.

Copy link
Member

@fno2010 fno2010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like a good starting point for the CP-based agent.


self.bf = Session(host="localhost")

self.bf.init_snapshot('/data/live', name='live', overwrite=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is /data/live a hardcoded path? Should it be configured by the agent JSON file?

"namespace": "default",
"agent_class": "alto.agent.batfish.BatfishAgent",
"refresh_interval": 300
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why the agent JSON file doesn't include any config of network control plane snapshot data.

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.

2 participants