Expand description
This crate allows execution of CLI commands on Arista EOS switches.
Features
asyncadds async (via tokio runtime) support.
Example
let result = eapi_run(None, &["show clock", "show aliases"], ResultFormat::Json);
match result {
Response::Result(v) => println!("{v:?}"),
Response::Error {
message,
code,
errors,
} => println!("error code: {code}, message: {message}, outputs: {errors:#?}"),
};Enums
The errors returned by the library.
Commands execution response.
Format of the commands output.
Functions
Runs commands via eAPI and returns the results.