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

how to get other port attributes i.e. MTU #30

Open
ghost opened this issue Jun 19, 2017 · 4 comments
Open

how to get other port attributes i.e. MTU #30

ghost opened this issue Jun 19, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Jun 19, 2017

Hi,

Is there a way to read port attributes like MTU/framesize, duplex mode or auto negotiation? I see such attributes on CLI but I could not find relevant interface in the C++ SDK.

Regards,
Hubert

@avi-kumar
Copy link
Contributor

Hi Hubert,
We don't currently expose these fields via EosSdk, although they are available via eAPI. Would you want to eventually react to changes on these fields, or simply looking for APIs to retrieve and modify them?

Thanks,
Avinash

@ghost
Copy link
Author

ghost commented Jun 20, 2017

Being able to retrieve and modify them would be fantastic.

Thanks,
Hubert

@ruferp
Copy link
Contributor

ruferp commented Jun 20, 2017

The next release (4.19.0, numbering is my guess) will most probably have an api to run cli commands, something like this:
eapi_response_t run_config_cmds(const std::vectorstd::string &);
std::string run_show_cmd(const std::string &)
where the response has an overall status, potential error-code & error-message, and a vector of string corresponding to each command's output, in json format.
Not as nice to use as a native interface, and no on_xxx callbacks, but sometimes it helps bridge a gap in coverage...

@ghost
Copy link
Author

ghost commented Jun 22, 2017

I don't think this is a good solution to this problem.
I would prefer a simple API function for each attribute like it is now for attributes like administration state.

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

No branches or pull requests

2 participants