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

[SNMP:Contact] Fix for config replace failure with SNMP Contact issue #1774

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions doc/snmp/snmp-configdb-migration-hld.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ admin@switch1:~$ redis-cli -n 4 hgetall "SNMP|LOCATION"
2) "Emerald City"

admin@switch1:~$ redis-cli -n 4 hgetall "SNMP|CONTACT"
1) "joe"
2) "joe@contoso.com"
1) "Contact"
2) "joe joe@contoso.com"
```

# SNMP_COMMUNITY Table
Expand Down Expand Up @@ -127,12 +127,12 @@ Options:
admin@switch1:~$

admin@switch1:~$ show run snmp contact
Contact Contact Email
--------- -----------------
Joe joe@contoso.com
Contact
---------
joe joe@contoso.com
admin@switch1:~$
admin@switch1:~$ show run snmp contact --json
{'joe': 'joe@contoso.com'}
{'Contact': 'joe joe@contoso.com'}
admin@switch1:~$
```

Expand Down Expand Up @@ -246,28 +246,28 @@ Options:
-h, -?, --help Show this message and exit.

Commands:
add Add snmp contact name and email
del Delete snmp contact name and email
add Add snmp contact
del Delete snmp contact
modify Modify snmp contact
admin@switch1:~$
admin@switch1:~$ sudo config snmp contact add -h
Usage: config snmp contact add [OPTIONS] <contact_name> <contact_email>
Usage: config snmp contact add [OPTIONS] <contact>

Add snmp contact name and email
Add snmp contact

Options:
-?, -h, --help Show this message and exit.
admin@switch1:~$
admin@switch1:~$ sudo config snmp contact del -h
Usage: config snmp contact del [OPTIONS] <contact_name>
Usage: config snmp contact del [OPTIONS] <contact>

Delete snmp contact name and email
Delete snmp contact

Options:
-h, -?, --help Show this message and exit.
admin@switch1:~$
admin@switch1:~$ sudo config snmp contact modify -h
Usage: config snmp contact modify [OPTIONS] <contact> <contact email>
Usage: config snmp contact modify [OPTIONS] <contact>

Modify snmp contact

Expand Down
2 changes: 1 addition & 1 deletion doc/snmp/snmp-schema-addition.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ In the end this is used to produce */etc/snmp/snmpd.conf*.
"Location":"<SNMP_LOCATION_STRING>"
},
"CONTACT":{
"<CONTACT_NAME>":"<SNMP_CONTACT_STRING>"
"Contact":"<SNMP_CONTACT_STRING>"
}
}
}
Expand Down