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

"Quick action" API #21

Open
magicnat opened this issue Jul 7, 2021 · 0 comments
Open

"Quick action" API #21

magicnat opened this issue Jul 7, 2021 · 0 comments
Assignees
Labels
client Issues related to the SEED emulator client emulator Issues related to the SEED emulator enhancement New feature or request proposal Proposal of new feature

Comments

@magicnat
Copy link
Member

magicnat commented Jul 7, 2021

The map feature currently offers only quick actions to:

  • enable/disable BGP peers
  • disconnecting nodes from networks.

The logic of those quick actions are currently implemented by the docker compiler and the client program. Meaning to add new quick actions, one will have to update the client program and the compiler. As most users will probably use the map feature of the seedemu-client to interact with the emulation, we should consider providing an API (probably on the Node class?) to add quick actions to nodes. Layers, services, or emulation developers can then add the quick actions they want directly.

Possible use cases:

  • One may be interested in using the emulator for smart contact, but they may not have knowledge on how to operator BGP/OSPF (i.e., work with the BIRD CLI or vtysh), etc. They however may be interested to see how disconnecting major ISPs from networks affect the blockchain. Quick actions will allow them to do that without knowing how to operate the CLI.
  • Some services, like botnet and eth, require user interaction after the emulation is started. Providing quick actions allows them to interact without having prior knowledge on how to operate the software (control server and geth in this case).
@magicnat magicnat added the proposal Proposal of new feature label Jul 7, 2021
@magicnat magicnat self-assigned this Jul 7, 2021
@magicnat magicnat added enhancement New feature or request client Issues related to the SEED emulator client emulator Issues related to the SEED emulator labels Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Issues related to the SEED emulator client emulator Issues related to the SEED emulator enhancement New feature or request proposal Proposal of new feature
Projects
None yet
Development

No branches or pull requests

1 participant