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

T6335: Add/Update EVPN op commands (backport #3458) #3465

Merged
merged 2 commits into from
May 16, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented May 16, 2024

Change Summary

Added the following commands:
show evpn
show evpn es
show evpn es
show evpn es detail
show evpn es-evi
show evpn es-evi detail
show evpn es-evi vni
show evpn vni
show evpn vni detail
show evpn vni

Updated the following commands:
show evpn access-vlan
show evpn arp-cache
show evpn mac
show evpn next-hops
show evpn rmac

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

https://vyos.dev/T6335

Related PR(s)

Component(s) name

evpn, op-mode

Proposed changes

Additional EVPN op commands that are available in FRR have been exposed to VyOS. Additionally some existing commands were updated with exposure to the API as well as completion helpers.

How to test

Configure EVPN and run show commands:
Examples:

vyos@vyos:~$ show evpn es
Type: B bypass, L local, R remote, N non-DF
ESI                            Type ES-IF                 VTEPs
03:aa:bb:cc:dd:ee:f0:00:00:64  LN   bond0
03:aa:bb:cc:dd:ee:f2:00:00:65  LN   bond1
vyos@vyos:~$ show evpn vni
VNI        Type VxLAN IF              # MACs   # ARPs   # Remote VTEPs  Tenant VRF
102        L2   vxlan2                0        0        0               default
100        L2   vxlan0                0        0        0               default
105        L2   vxlan5                0        0        0               default
103        L2   vxlan3                0        0        0               default
109        L2   vxlan9                0        0        0               default
110        L2   vxlan10               0        0        0               default
108        L2   vxlan8                0        0        0               default
101        L2   vxlan1                0        0        0               default
107        L2   vxlan7                0        0        0               default
106        L2   vxlan6                0        0        0               default
104        L2   vxlan4                0        0        0               default
vyos@vyos:~$ show evpn vni 100
VNI: 100
 Type: L2
 Vlan: 1
 Bridge: br0
 Tenant VRF: default
 VxLAN interface: vxlan0
 VxLAN ifIndex: 19
 SVI interface: br0
 SVI ifIndex: 6
 Local VTEP IP: 10.1.2.2
 Mcast group: 0.0.0.0
 No remote VTEPs known for this VNI
 Number of MACs (local and remote) known for this VNI: 0
 Number of ARPs (IPv4 and IPv6, local and remote) known for this VNI: 0
 Advertise-gw-macip: No
 Advertise-svi-macip: No

Smoketest result

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

This is an automatic backport of pull request #3458 done by [Mergify](https://mergify.com).

l0crian1 added 2 commits May 16, 2024 18:41
Added the following commands:
show evpn
show evpn es
show evpn es <es-id>
show evpn es detail
show evpn es-evi
show evpn es-evi detail
show evpn es-evi vni <num>
show evpn vni
show evpn vni detail
show evpn vni <num>

Updated the following commands:
show evpn access-vlan
show evpn arp-cache
show evpn mac
show evpn next-hops
show evpn rmac

(cherry picked from commit c6be441)
Converted completion helpers from python to bash for performance

Previous commit:
Added the following commands:
show evpn
show evpn es
show evpn es <es-id>
show evpn es detail
show evpn es-evi
show evpn es-evi detail
show evpn es-evi vni <num>
show evpn vni
show evpn vni detail
show evpn vni <num>

Updated the following commands:
show evpn access-vlan
show evpn arp-cache
show evpn mac
show evpn next-hops
show evpn rmac

(cherry picked from commit 3917e3e)
@mergify mergify bot mentioned this pull request May 16, 2024
12 tasks
@github-actions github-actions bot added the sagitta VyOS 1.4 LTS label May 16, 2024
@c-po c-po merged commit badc6a2 into sagitta May 16, 2024
4 of 5 checks passed
@mergify mergify bot deleted the mergify/bp/sagitta/pr-3458 branch May 16, 2024 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sagitta VyOS 1.4 LTS
Development

Successfully merging this pull request may close these issues.

2 participants