Aoscx: Update regex to include 'N/A' in FAN speed parsing#3727
Aoscx: Update regex to include 'N/A' in FAN speed parsing#3727solrac200 wants to merge 1 commit intoytti:masterfrom
Conversation
|
The PR conflicts with the model 8100, which has a different output than 8325 or 6000. Can you provide a YAML simulation file or at least your output of show environment and the model type you are using? |
|
aoscx#CX6200_10.16.1020_environment#simulation.yaml Also i have another problem: with_section(cfg, 'power-supply input-voltage') do |content|
content.gsub!(/^\d((?:\S+\s+){4})(?:\S+\s+){2}((?:\S+(?:\s+)?){4})$/, '\\1 <power hidden> <avg power hidden> \\2')
endAlso i had to edit the "show power-consumption", to work correctly for 6200, to the following: with_section(cfg, 'power-consumption') do |content|
content.gsub!(/^(.*?) (?:(?:N\/A|\d+\.\d+) +)+(?:N\/A|\d+\.\d+)$/, '\\1 <power hidden>')
end |
Description
Aoscx: Update regex to include 'N/A' in FAN speed parsing