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

Support for switchport mode tool #44

Open
aletessier opened this issue Oct 13, 2015 · 4 comments
Open

Support for switchport mode tool #44

aletessier opened this issue Oct 13, 2015 · 4 comments
Assignees

Comments

@aletessier
Copy link

Would it be possible to add support for mode tool switchport configuration?

@phil-dileo
Copy link
Contributor

Hi @aletessier - are you simply looking for mode tool on an interface or do you really need a complete tapAgg API.

@aletessier
Copy link
Author

Hi @phil-arista
Yes i need a complete tapAgg API. (tool group set grpname, tool dot1q remove, mode tap, etc..)

@Mr-Click
Copy link

Hi,
any news on this issue?
Is it possible via the eAPI to modify tool switchport configuration?

@dathelen
Copy link
Contributor

dathelen commented Sep 2, 2016

@Mr-Click

The pyeapi library allows you do any configuration your user is authorized to do, even if there isn't a specific API written for it yet. You just have to know the exact syntax. Something like the following would work for setting the switch to tap agg mode then setting a tool port and tap port:
(this assumes you have a working config file setup already)


import pyeapi

# create a node object by specifying the node to work with
node = pyeapi.connect_to('veos01')

# use the config method to  enable tap agg mode (note this will likely be a disruptive change):
node.config(['tap aggregation', 'mode exclusive'])
[{}, {}]

# enable tap port
node.config(['interface Ethernet1', 'switchport tap default group veos1'])
[{}, {}]

#enable tool port
node.config(['interface Ethernet2', 'switchport tool group veos1'])
[{}, {}]

@devrobo devrobo modified the milestone: v0.8.0 Jan 23, 2017
@mharista mharista modified the milestone: v0.8.0 Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants