-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'sonic-net:master' into master
- Loading branch information
Showing
43 changed files
with
1,908 additions
and
108 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
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
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,48 @@ | ||
# get_vlan_brief | ||
|
||
- [Overview](#overview) | ||
- [Examples](#examples) | ||
- [Arguments](#arguments) | ||
- [Expected Output](#expected-output) | ||
- [Potential Exception](#potential-exception) | ||
|
||
## Overview | ||
|
||
Read vlan brief information from running config. | ||
|
||
## Examples | ||
|
||
```python | ||
def test_fun(duthosts, rand_one_dut_hostname): | ||
duthost = duthosts[rand_one_dut_hostname] | ||
vlan_brief = duthost.get_vlan_brief() | ||
``` | ||
|
||
## Arguments | ||
|
||
None | ||
|
||
## Expected Output | ||
|
||
Returns an dict, key is vlan name and value is brief information. | ||
|
||
Example output: | ||
|
||
``` | ||
{ | ||
"Vlan1000": { | ||
"interface_ipv4": [ "192.168.0.1/24" ], | ||
"interface_ipv6": [ "fc02:1000::1/64" ], | ||
"members": ["Ethernet0", "Ethernet1"] | ||
}, | ||
"Vlan2000": { | ||
"interface_ipv4": [ "192.168.1.1/24" ], | ||
"interface_ipv6": [ "fc02:1001::1/64" ], | ||
"members": ["Ethernet3", "Ethernet4"] | ||
} | ||
} | ||
``` | ||
|
||
## Potential Exception | ||
|
||
- [Exception from function get_running_config_facts](get_running_config_facts.md) |
Oops, something went wrong.