-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows to view switch ports configuration (name, poe status, peer device) and to rename them for a more readable walt device tree output. Fix #102.
- Loading branch information
Showing
14 changed files
with
297 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
# Viewing and updating switch ports configuration | ||
|
||
Users can view or modify switch ports configuration using command `walt device port-config`: | ||
``` | ||
$ walt device port-config switch1 # show conf of all ports of switch1 | ||
[...] | ||
$ walt device port-config switch1 4 # show conf of 4th port of switch1 | ||
Port 4 of switch1 has the following config: | ||
4: name="4" poe=on peer=walt-server | ||
$ walt device port-config switch1 4 name="SR32C14" # rename port 4 of switch1 | ||
Done. | ||
$ walt device tree # name is updated in the network view | ||
-- switch1 -- | ||
├─SR32C14: walt-server | ||
[...] | ||
``` | ||
|
||
When the WalT network is deployed on selected wall plugs of a large building, and these wall plugs have their name on a tag, one can give to switch ports the name of respective wall plugs, for easier platform maintenance. | ||
|
||
WalT implements the following port settings: | ||
|
||
| Name | possible values | access type | | ||
|-----------|-------------------------|----------------| | ||
| name | alphanumeric name | read-write | | ||
| poe | on / off / unavailable | read | | ||
| peer | peer device or unknown | read | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.