-
Notifications
You must be signed in to change notification settings - Fork 21
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
[REVIEW] - Adds test for switch config types #784
base: master
Are you sure you want to change the base?
Changes from 7 commits
049669f
7318473
928c8f8
4cf1448
2830b53
38d8132
c9624e0
e7bf430
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,6 +107,26 @@ def test_switchtypes_tsv(): | |
result, err = ds.test_tsvfile(meta) | ||
assert result, err | ||
|
||
def test_switchconfigs_tsv(): | ||
"""test switchconfigs""" | ||
|
||
directory = "../switch-configuration/config/types/" | ||
for filename in os.listdir(directory): | ||
meta = { | ||
"file": directory + filename, | ||
"header": False, | ||
"count": "1+", | ||
"cols": [ | ||
ds.isvalidport, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. having |
||
ds.isuntested, | ||
ds.isuntested, | ||
ds.isuntested, | ||
ds.isvalidlink, | ||
ds.isuntested, | ||
], | ||
} | ||
result, err = ds.test_tsvfile(meta) | ||
assert result, err | ||
|
||
def test_vlansd_tsv(): | ||
"""test vlans.d/""" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
// Expo Booth Area switch Template | ||
TRUNK ge-0/0/0 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra,exAVLAN, \ | ||
exSigns,exVmVendor,vendor_backbone - Uplink | ||
TRUNK ge-0/0/1 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra,exAVLAN, \ | ||
exSigns,exVmVendor,vendor_backbone - Downlink | ||
TRUNK ge-0/0/0 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra,exAVLAN, exSigns,exVmVendor,vendor_backbone - Uplink | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Id prefer it we update |
||
TRUNK ge-0/0/1 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra,exAVLAN, exSigns,exVmVendor,vendor_backbone - Downlink | ||
RSRVD 6 | ||
TRUNK ge-0/0/8 exInfra,exSCALE-SLOW,exSCALE-FAST POE AP | ||
TRUNK ge-0/0/9 exInfra,exSCALE-SLOW,exSCALE-FAST POE AP | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,109 +1,49 @@ | ||
// Expo Center Catwalk Switch Configuration | ||
TRUNK ge-0/0/0 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Uplink | ||
TRUNK ge-0/0/1 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/2 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/3 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/4 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/5 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/6 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/7 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/8 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/9 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/10 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/11 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/12 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/13 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/14 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/15 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/16 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/17 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/18 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/19 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/20 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/21 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/22 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/23 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/24 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/25 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/26 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/27 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/28 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/29 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, \ | ||
exAVLAN,vendor_backbone,exVmVendor \ | ||
exSigns,exVmVendor,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/30 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/31 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/32 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/33 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/34 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/35 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/36 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/37 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/38 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/39 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/40 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/41 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/42 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/43 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/44 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/45 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/46 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/47 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/0 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Uplink | ||
TRUNK ge-0/0/1 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/2 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/3 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/4 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/5 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/6 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/7 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/8 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/9 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/10 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/11 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/12 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/13 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/14 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/15 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/16 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/17 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/18 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/19 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/20 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/21 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/22 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/23 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/24 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/25 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/26 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/27 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/28 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/29 exSCALE-SLOW,exSCALE-FAST,exSpeaker,exInfra, exAVLAN,vendor_backbone,exVmVendor exSigns,exVmVendor,HAM_BRIDGE - Downlink | ||
TRUNK ge-0/0/30 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/31 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/32 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/33 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/34 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/35 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/36 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/37 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/38 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/39 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/40 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/41 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/42 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/43 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/44 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/45 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/46 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night | ||
TRUNK ge-0/0/47 exSCALE-SLOW,exSCALE-FAST,exInfra POE AP // for Game Night |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the count here should be
4+
since it looks like we have a mix of4-6
columns for the config types