feat(switch/brocade): Implement client to interact with Brocade switches #168
Reference in New Issue
Block a user
No description provided.
Delete Branch "brocade-switch-client"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
brocade::init()function to connect to a Brocade switch and automatically pick the best implementation based on its OS and versionArchitecture decisions
The architecture for the library is based on 3 layers:
BrocadeClienttrait to describe the available capabilities to interact with a Brocade switch. It is partly opinionated in order to offer higher level features to group multiple commands into a single function (e.g. create a port channel). Its implementations are basically just the commands to run on the switch and the functions to parse the output.BrocadeShellstruct to make it easier to authenticate, send commands, and interact with the switch.sshmodule to actually connect to the switch over SSH and execute the commands.With time, we will add support for more Brocade switches and their various OS/versions. If needed, shared behavior could be extracted into a separate module to make it easier to add new implementations and keep duplication to a minimum.
4955b74d75toc0bd8007c7feat(switch/brocade): Implement clients to interact with Brocade switchesto feat(switch/brocade): Implement client to interact with Brocade switches