-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
- I have read and understood docs/Issues.md.
Describe the problem
Newer firmware for the XOS universal switches reports the days until the license expires, causes a config change every single day.
Expected behavior
I have been trying to extend the model following these docs but I am not having any luck. I assume I am doing something wrong or misunderstanding. When viewing the config file, I still see the line # Standard, expires in 1 days with the override in place. I temporarily commented out the "show licenses" command in /var/lib/gems/3.3.0/gems/oxidized-0.35.0/lib/oxidized/model/xos.rb. I restart the container after any modifications.
Configuration
in /home/oxidized/.config/oxidized/model/xos.rb I have placed the following
require 'oxidized/model/xos'
class XOS < Oxidized::Model
using Refinements
cmd 'show licenses' do |cfg|
cfg = cfg.lines.reject do |line|
line =~ /^\s*Enabled License Level:/ ||
line =~ /expires in \d+\s+day/
end.join
comment cfg
end
end
Logs
n/a
Running environment (please complete the following information):
- OS: Docker Image oxidized/oxidized:latest
- oxidized version: v.0.35.0
- oxidized-web version: v.0.18.0
- Manufacturer model an software version: Extreme Universal 5720 33.3.1.4
- oxidized model name: xos