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

Feat(eos_cli_config_gen): Add switchport 'tap' and 'tool' mode config to the ethernet and port-channel interfaces #4174

Open
wants to merge 13 commits into
base: devel
Choose a base branch
from

Conversation

Shivani-gslab
Copy link
Contributor

@Shivani-gslab Shivani-gslab commented Jul 2, 2024

Change Summary

Add switchport 'tap' and 'tool' mode config to the interfaces

Related Issue(s)

Fixes #

Component(s) name

arista.avd.eos_cli_config_gen

Proposed changes

Add schema, template and tests for switchport.tap and switchport.tool in interfaces.

How to test

Molecule test added. Test in EOS CLI.

Checklist

User Checklist

  • N/A

Repository Checklist

  • My code has been rebased from devel before I start
  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation and documentation have been updated accordingly.
  • I have updated molecule CI testing accordingly. (check the box if not applicable)

Copy link

github-actions bot commented Jul 2, 2024

Review docs on Read the Docs

To test this pull request:

# Create virtual environment for this testing below the current directory
python -m venv test-avd-pr-4174
# Activate the virtual environment
source test-avd-pr-4174/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/Shivani-gslab/avd.git@switchport_tap_tool#subdirectory=python-avd" --force
# Install Ansible collection
ansible-galaxy collection install git+https://github.com/Shivani-gslab/avd.git#/ansible_collections/arista/avd/,switchport_tap_tool --force
# Optional: Install AVD examples
cd test-avd-pr-4174
ansible-playbook arista.avd.install_examples

identity:

# Tap port ID tag.
port_id: <int; 1-4094>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the cli is bit odd for this option

wan1-dc1(config-if-Et1)#switchport tap identity ?
  <1-4094>   Tap port VLAN ID tag
  <1-65535>  Tap port extended ID

wan1-dc1(config-if-Et1)#switchport tap identity 65533 ?
  <cr>  

wan1-dc1(config-if-Et1)#switchport tap identity 4094 ?
  inner  Configure inner tap port ID tag
  <cr>   

wan1-dc1(config-if-Et1)#switchport tap identity 4095 ?
  <cr>  

We might need to add the condtion of greater then 4094
@gmuloc

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to check more

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me it is like this - [EOS 4.30]

s1-leaf2(config-if-Et1)#switchport tap identity ?
  <1-4094>  Tap port ID tag

s1-leaf2(config-if-Et1)#switchport tap identity 10 ?
  inner  Configure inner tap port ID tag
  <cr>   

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If tap identity is greater than 4094 then it shows internal error.

s1-spine1(config-if-Et1)#switchport tap identity 4092
s1-spine1(config-if-Et1)#show active 
interface Ethernet1
   switchport tap identity 4092
   switchport tap mac-address dest 00:01:00:01:00:01 src 00:02:00:02:00:02
   switchport tap encapsulation vxlan strip
   switchport tap encapsulation gre destination 1.1.1.1 source 2.2.2.2 protocol 0xad9c feature header length 3 strip
   switchport tap allowed vlan 10-20
   switchport tap default nexthop-group aaaa adfs asd asdfs ffr
   switchport tap default interface Ethernet3
   switchport tap default interface Ethernet4
   switchport tap default interface Recirc-Channel4
s1-spine1(config-if-Et1)#switchport tap identity 4092 ?
  inner  Configure inner tap port ID tag
  <cr>   

s1-spine1(config-if-Et1)#switchport tap identity 65535 ?
  <cr>  

s1-spine1(config-if-Et1)#switchport tap identity 65535 
s1-spine1(config-if-Et1)#show active 

% Internal error

@ClausHolbechArista

@Shivani-gslab Shivani-gslab marked this pull request as ready for review July 15, 2024 12:05
@Shivani-gslab Shivani-gslab requested review from a team as code owners July 15, 2024 12:05
@Shivani-gslab Shivani-gslab marked this pull request as draft July 21, 2024 17:24
@Shivani-gslab Shivani-gslab marked this pull request as ready for review July 22, 2024 12:38
@Shivani-gslab Shivani-gslab marked this pull request as draft July 22, 2024 13:24
@Shivani-gslab Shivani-gslab marked this pull request as ready for review July 22, 2024 13:24
@Shivani-gslab Shivani-gslab marked this pull request as draft July 22, 2024 13:31
@Shivani-gslab Shivani-gslab marked this pull request as ready for review July 23, 2024 05:10
@github-actions github-actions bot added the state: conflict PR with conflict label Jul 31, 2024
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the state: conflict PR with conflict label Aug 5, 2024
Copy link

github-actions bot commented Aug 5, 2024

Conflicts have been resolved. A maintainer will review the pull request shortly.

@MaheshGSLAB MaheshGSLAB requested a review from a team August 6, 2024 11:13
@MaheshGSLAB MaheshGSLAB requested a review from a team August 6, 2024 11:32
@Shivani-gslab Shivani-gslab marked this pull request as draft August 6, 2024 11:53
@Shivani-gslab Shivani-gslab marked this pull request as ready for review August 7, 2024 13:22
Copy link

sonarcloud bot commented Aug 20, 2024

@github-actions github-actions bot added the state: conflict PR with conflict label Aug 23, 2024
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
role: eos_cli_config_gen issue related to eos_cli_config_gen role state: CI Updated CI scenario have been updated in the PR state: conflict PR with conflict state: Documentation role Updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants