Skip to content

Commit

Permalink
New Template: WLC - show 802.11a|b (networktocode#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
timjsmith24 authored and thomasblass committed Oct 25, 2020
1 parent bdc3b19 commit 9a0f38e
Show file tree
Hide file tree
Showing 5 changed files with 310 additions and 2 deletions.
67 changes: 67 additions & 0 deletions templates/cisco_wlc_ssh_show_802.11ab.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
Value STATUS (\w+)
Value List SPECS (\w+)
Value List SPECS_VALUE (\w+)
Value List DATA_RATE (\d+\.?\d?\w)
Value List DATA_RATE_VALUE (\w+)
Value List MCS_RATE (\d+)
Value List MCS_RATE_VALUE (\w+)
Value List SS_MCS_RATE (Nss=\d\:\sMCS\s0-\d)
Value List SS_MCS_RATE_VALUE (\w+)
Value BEACON_INTERVAL (\d+)
Value RSSI_LOW_CHECK (\w+)
Value RSSI_THRES (-\d+)
Value EDCA (.+?)
Value VOICE_AMC (\w+)
Value VOICE_CAC_METHOD (.+?)
Value VOICE_MAX_BANDWIDTH (\d+)
Value VOICE_ROAMING_BANDWIDTH (\d+|)
Value VIDEO_AMC (\w+)
Value VIDEO_CAC_METHOD (.+?)
Value VIDEO_MAX_BANDWIDTH (\d+)
Value VIDEO_ROAMING_BANDWIDTH (\d+|)
Value MAX_CLIENT (\d+)



Start
^802.11(a|b)\sNetwork\.*\s${STATUS}s*$$ -> Spec_support
^Beacon\sInterval\.*\s${BEACON_INTERVAL}s*$$
^RSSI\sLow\sCheck\.*\s${RSSI_LOW_CHECK}s*$$
^RSSI\sThreshold\.*\s${RSSI_THRES}s*$$
^EDCA\sprofile\stype\.*\s${EDCA}s*$$
^\s+Voice\sAC\s-\sAdmission\scontrol\s\(ACM\)\.*\s${VOICE_AMC}s*$$
^\s+Voice\sCAC\sMethod.*\s${VOICE_CAC_METHOD}s*$$
^\s+Voice\smax\sRF\sbandwidth\.*\s${VOICE_MAX_BANDWIDTH}s*$$
^\s+Voice\sreserved\sroaming\sbandwidth\.*\s${VOICE_ROAMING_BANDWIDTH}s*$$
^\s+Video\sAC\s-\sAdmission\scontrol\s\(ACM\)\.*\s${VIDEO_AMC}s*$$
^\s+Video\sCAC\sMethod\s\.*\s${VIDEO_CAC_METHOD}s*$$
^\s+Video\smax\sRF\sbandwidth\.*\s${VIDEO_MAX_BANDWIDTH}s*$$
^\s+Video\sreserved\sroaming\sbandwidth\.*\s${VIDEO_ROAMING_BANDWIDTH}s*$$
^Maximum\sNumber\sof\sClients\sper\sAP(\sRadio)?\.*\s${MAX_CLIENT}s*$$
^\s*
^. -> Error

Spec_support
^11${SPECS}Support\.*\s${SPECS_VALUE}s*$$
^802.11(a|b|b\/g)\sOperational\sRates -> Data_Rates
^\s*
^. -> Error

Data_Rates
^\s+802.11(a|g|b|(b\/g))\s${DATA_RATE}\s+Rate\.*\s+${DATA_RATE_VALUE}s*$$
^802.11n\s+MCS\s+Settings: -> MCS_Rates
^\s*
^. -> Error

MCS_Rates
^\s+MCS\s${MCS_RATE}\.*\s+${MCS_RATE_VALUE}s*$$
^802.11ac\s+MCS\s+Settings: -> AC_MCS_Rates
^802.11n Status: -> Start
^\s*
^. -> Error

AC_MCS_Rates
^\s+${SS_MCS_RATE}\s+\.*\s${SS_MCS_RATE_VALUE}s*$$
^802.11n\s+Status: -> Start
^\s*
^. -> Error
2 changes: 1 addition & 1 deletion templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ cisco_wlc_ssh_show_ap_config_general.template, .*, cisco_wlc_ssh, sh[[ow]] ap co
cisco_wlc_ssh_show_client_detail.template, .*, cisco_wlc_ssh, sh[[ow]] cl[[ient]] det[[ail]]
cisco_wlc_ssh_show_exclusionlist.template, .*, cisco_wlc_ssh, sh[[ow]] ex[[clusionlist]]
cisco_wlc_ssh_show_ap_summary.template, .*, cisco_wlc_ssh, sh[[ow]] ap sum[[mary]]
cisco_wlc_ssh_show_802.11ab.template, .*, cisco_wlc_ssh, show 802\.11a|b
cisco_wlc_ssh_show_sysinfo.template, .*, cisco_wlc_ssh, sh[[ow]] sysi[[nfo]]


cisco_xr_show_controllers_fabric_fia_errors_ingress_location.template, .*, cisco_xr, sh[[ow]] contr[[ollers]] fabric fi[[a]] err[[ors]] in[[gress]] loc[[ation]]
cisco_xr_show_controllers_fabric_fia_drops_ingress_location.template, .*, cisco_xr, sh[[ow]] contr[[ollers]] fabric fi[[a]] dr[[ops]] in[[gress]] loc[[ation]]
cisco_xr_show_controllers_fabric_fia_errors_egress_location.template, .*, cisco_xr, sh[[ow]] contr[[ollers]] fabric fi[[a]] err[[ors]] eg[[ress]] loc[[ation]]
Expand Down
116 changes: 116 additions & 0 deletions tests/cisco_wlc_ssh/show_802.11ab/cisco_wlc_ssh_show_802_11ab.parsed
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
---
parsed_sample:
- beacon_interval: '100'
data_rate:
- 6M
- 9M
- 12M
- 18M
- 24M
- 36M
- 48M
- 54M
data_rate_value:
- Mandatory
- Supported
- Mandatory
- Supported
- Mandatory
- Supported
- Supported
- Supported
edca: default-wmm
max_client: '200'
mcs_rate:
- '0'
- '1'
- '2'
- '3'
- '4'
- '5'
- '6'
- '7'
- '8'
- '9'
- '10'
- '11'
- '12'
- '13'
- '14'
- '15'
- '16'
- '17'
- '18'
- '19'
- '20'
- '21'
- '22'
- '23'
- '24'
- '25'
- '26'
- '27'
- '28'
- '29'
- '30'
- '31'
mcs_rate_value:
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
- Supported
rssi_low_check: Disabled
rssi_thres: '-80'
specs:
- ac
- n
specs_value:
- Enabled
- Enabled
ss_mcs_rate:
- 'Nss=1: MCS 0-9'
- 'Nss=2: MCS 0-9'
- 'Nss=3: MCS 0-9'
- 'Nss=4: MCS 0-7'
ss_mcs_rate_value:
- Supported
- Supported
- Supported
- Supported
status: Disabled
video_amc: Disabled
video_cac_method: Static
video_max_bandwidth: '0'
video_roaming_bandwidth: '0'
voice_amc: Disabled
voice_cac_method: Load-Based
voice_max_bandwidth: '75'
voice_roaming_bandwidth: '6'
125 changes: 125 additions & 0 deletions tests/cisco_wlc_ssh/show_802.11ab/cisco_wlc_ssh_show_802_11ab.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@

802.11a Network.................................. Disabled
11acSupport...................................... Enabled
11nSupport....................................... Enabled
802.11a Low Band........................... Enabled
802.11a Mid Band........................... Enabled
802.11a High Band.......................... Enabled
802.11a Operational Rates
802.11a 6M Rate.............................. Mandatory
802.11a 9M Rate.............................. Supported
802.11a 12M Rate............................. Mandatory
802.11a 18M Rate............................. Supported
802.11a 24M Rate............................. Mandatory
802.11a 36M Rate............................. Supported
802.11a 48M Rate............................. Supported
802.11a 54M Rate............................. Supported
802.11n MCS Settings:
MCS 0........................................ Supported
MCS 1........................................ Supported
MCS 2........................................ Supported
MCS 3........................................ Supported
MCS 4........................................ Supported
MCS 5........................................ Supported
MCS 6........................................ Supported
MCS 7........................................ Supported
MCS 8........................................ Supported
MCS 9........................................ Supported
MCS 10....................................... Supported
MCS 11....................................... Supported
MCS 12....................................... Supported
MCS 13....................................... Supported
MCS 14....................................... Supported
MCS 15....................................... Supported
MCS 16....................................... Supported
MCS 17....................................... Supported
MCS 18....................................... Supported
MCS 19....................................... Supported
MCS 20....................................... Supported
MCS 21....................................... Supported
MCS 22....................................... Supported
MCS 23....................................... Supported
MCS 24....................................... Supported
MCS 25....................................... Supported
MCS 26....................................... Supported
MCS 27....................................... Supported
MCS 28....................................... Supported
MCS 29....................................... Supported
MCS 30....................................... Supported
MCS 31....................................... Supported
802.11ac MCS Settings:
Nss=1: MCS 0-9 .............................. Supported
Nss=2: MCS 0-9 .............................. Supported
Nss=3: MCS 0-9 .............................. Supported
Nss=4: MCS 0-7 .............................. Supported
802.11n Status:
A-MPDU Tx:
Priority 0............................... Enabled
Priority 1............................... Enabled
Priority 2............................... Enabled
Priority 3............................... Enabled
Priority 4............................... Enabled
Priority 5............................... Enabled
Priority 6............................... Disabled
Priority 7............................... Disabled
Aggregation scheduler.................... Enabled
Frame Burst.............................. Automatic
Realtime Timeout..................... 10
Non Realtime Timeout................. 200
A-MSDU Tx:
Priority 0............................... Enabled
Priority 1............................... Enabled
Priority 2............................... Enabled
Priority 3............................... Enabled
Priority 4............................... Enabled
Priority 5............................... Enabled
Priority 6............................... Disabled
Priority 7............................... Disabled
A-MSDU Max Subframes ........................ 3
A-MSDU MAX Length ........................... 8k
Rifs Rx ..................................... Enabled
Guard Interval .............................. Any
Beacon Interval.................................. 100
CF Pollable mandatory............................ Disabled
CF Poll Request mandatory........................ Disabled
CFP Period....................................... 4
CFP Maximum Duration............................. 60
Default Channel.................................. 36
Default Tx Power Level........................... 1
DTPC Status..................................... Enabled
Fragmentation Threshold.......................... 2346
RSSI Low Check................................... Disabled
RSSI Threshold................................... -80
TI Threshold..................................... -50
Legacy Tx Beamforming setting.................... Disabled
Traffic Stream Metrics Status.................... Disabled
Expedited BW Request Status...................... Disabled
World Mode....................................... Enabled
dfs-peakdetect................................... Enabled
EDCA profile type................................ default-wmm
Voice MAC optimization status.................... Disabled
Call Admission Control (CAC) configuration
Voice AC:
Voice AC - Admission control (ACM)............ Disabled
Voice Stream-Size............................. 84000
Voice Max-Streams............................. 2
Voice max RF bandwidth........................ 75
Voice reserved roaming bandwidth.............. 6
Voice CAC Method ............................. Load-Based
Voice tspec inactivity timeout................ Disabled
CAC SIP-Voice configuration
SIP based CAC ................................ Disabled
SIP Codec Type ............................... CODEC_TYPE_G711
SIP call bandwidth ........................... 64
SIP call bandwith sample-size ................ 20
Video AC:
Video AC - Admission control (ACM)............ Disabled
Video max RF bandwidth........................ 0
Video reserved roaming bandwidth.............. 0
Video load-based CAC mode..................... Disabled
Video CAC Method ............................. Static
CAC SIP-Video Configuration
SIP based CAC ................................ Disabled
Best-effort AC - Admission control (ACM)...... Disabled
Background AC - Admission control (ACM)....... Disabled
Maximum Number of Clients per AP Radio........... 200
2 changes: 1 addition & 1 deletion tests/test_testcases_exists.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_verify_parsed_and_reference_data_exists():
index = sorted(load_index_data())
for row in index:
template = row[0].strip()
template_short = template.split('.')[0]
template_short = template.split('.template')[0]
platform = row[2].strip()
for directory in os.listdir("tests"):
if re.match(platform, directory):
Expand Down

0 comments on commit 9a0f38e

Please sign in to comment.