Skip to content

Batfish agent#33

Open
Laur04 wants to merge 2 commits intoopenalto:mainfrom
Laur04:batfish
Open

Batfish agent#33
Laur04 wants to merge 2 commits intoopenalto:mainfrom
Laur04:batfish

Conversation

@Laur04
Copy link
Copy Markdown

@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
Copy Markdown
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.

Comment thread src/alto/agent/batfish.py

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

self.bf.init_snapshot('/data/live', name='live', overwrite=True)
Copy link
Copy Markdown
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?

Comment thread etc/batfish-agent.json
"namespace": "default",
"agent_class": "alto.agent.batfish.BatfishAgent",
"refresh_interval": 300
} No newline at end of file
Copy link
Copy Markdown
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