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

add neigh-suppress CLI command #1970

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

iris00522
Copy link

What I did

add neigh-suppress CLI command

How I did it

reference evpn neigh-suppress HLD
https://github.com/Azure/SONiC/blob/master/doc/vxlan/EVPN/EVPN_VXLAN_HLD.md

5. ARP suppression
   - config neigh-suppress vlan <vlan-id>  <"on"/"off">
   - vlanid represents the vlan_id and on/off is enabled or disabled. By default ARP/ND suppression is disabled.

add neigh-suppress CLI command

How to verify it

root@as7726-32x-3:/home/admin#  config neigh-suppress vlan 1000
Usage: config neigh-suppress vlan [OPTIONS] <vid> <on|off>
Try "config neigh-suppress vlan -h" for help.

Error: Missing argument "<on|off>".  Choose from:
        on,
        off.
root@as7726-32x-3:/home/admin#  config neigh-suppress vlan 1000 on
Vlan1000 doesn't exist
root@as7726-32x-3:/home/admin#  config vlan add 1000
root@as7726-32x-3:/home/admin#  config neigh-suppress vlan 1000 on
root@as7726-32x-3:/home/admin#  config neigh-suppress vlan 1000 off
root@as7726-32x-3:/home/admin#  config neigh-suppress vlan 1000 on
root@as7726-32x-3:/home/admin# redis-cli
127.0.0.1:6379> select 4
OK
127.0.0.1:6379[4]> keys *SUPPRESS_VLAN_NEIGH*
1) "SUPPRESS_VLAN_NEIGH|Vlan1000"
127.0.0.1:6379[4]> HGETALL "SUPPRESS_VLAN_NEIGH|Vlan1000"
1) "suppress"
2) "on"
127.0.0.1:6379[4]>

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

@lgtm-com
Copy link

lgtm-com bot commented Dec 15, 2021

This pull request introduces 1 alert when merging 119aaeacf3af4fbfe1edb6bc85338c2a2eaf1343 into 96143ee - view on LGTM.com

new alerts:

  • 1 for Unnecessary pass

@iris00522
Copy link
Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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

Successfully merging this pull request may close these issues.

2 participants