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

snmpagentaddress doesn't support the uppercase letters for ipv6 address #4852

Open
yanjundeng opened this issue Dec 15, 2021 · 2 comments
Open
Assignees

Comments

@yanjundeng
Copy link
Contributor

yanjundeng commented Dec 15, 2021

Description

The cli "config snmpagentaddress" doesn't support the uppercase letters for ipv6 address.
In sonic /config/main.py, we should add lower() in the folllowing func for ip comparison:
def add_snmp_agent_address(ctx, agentip, port, vrf):
if agentip.lower() == ipaddr['addr'].lower():

Steps to reproduce the issue:
config snmpagentaddress add FC00:2::32 -v mgmt
IP addfress is not available
config snmpagentaddress add fc00:2::32 -v mgmt

cisco@mathilda-01:~$ show management_interface addres
Management IP address = 192.168.122.202/24
Management Network Default Gateway = 192.168.122.1
Management IP address = FC00:2::32/64
Management Network Default Gateway = fc00:2::1

Describe the results you received:

Describe the results you expected:

@wangxin
Copy link
Collaborator

wangxin commented Dec 24, 2021

This should be an issue of this repo: https://github.com/Azure/sonic-utilities

@xwjiang-ms
Copy link
Contributor

Fixed in sonic-net/sonic-utilities#1989

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

3 participants