Skip to content

Commit

Permalink
fix(docs): update documentation for configuration key names
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklasfrahm committed Aug 11, 2022
1 parent e4c84d1 commit 5c32a69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,20 @@ Use "netadm [command] --help" for more information about a command.

## Configuration Items 🔧

| ID | Name | Example |
| ID | NAME | EXAMPLE |
| ------ | -------------------- | --------------------------------- |
| 0x0001 | model | GS308E |
| 0x0003 | name | switch-0 |
| 0x0004 | mac | 33:0b:c9:5e:51:3a |
| 0x0006 | ip | 192.168.0.253 |
| 0x0007 | netmask | 255.255.255.0 |
| 0x0008 | gateway | 192.168.0.254 |
| 0x000A | password | password |
| 0x000B | dhcp | false |
| 0x000D | firmware | 1.00.10 |
| 0x0014 | passwordencryption | false |
| 0x0014 | passwordencryption | Hash64 |
| 0x0017 | passwordnonce | [1 2 3 4] |
| 0x001A | passwordhash | [1 2 3 4] |
| 0x0C00 | portspeeds | [1:1G 2:Down] |
| 0x1000 | portmetrics | [1:64/32/0] |
| 0x1C00 | cabletestresult | [0 0 0 0 0 119 30 183 118] |
Expand Down
2 changes: 1 addition & 1 deletion pkg/nsdp/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ var (
// RecordFirmware contains the device's firmware version.
RecordFirmware = NewRecordType(0x000D, "Firmware", "1.00.10")
// RecordPasswordEncryption specifies which encryption methods the switch supports.
RecordPasswordEncryption = NewRecordType(0x0014, "PasswordEncryption", EncryptionModeNone)
RecordPasswordEncryption = NewRecordType(0x0014, "PasswordEncryption", EncryptionModeHash64)
// RecordPasswordNonce contains the device's encryption nonce.
RecordPasswordNonce = NewRecordType(0x0017, "PasswordNonce", []byte{0x01, 0x02, 0x03, 0x04})
// RecordPasswordHash specifies a hashed password for authentication.
Expand Down

0 comments on commit 5c32a69

Please sign in to comment.