oxidized 0.34.0 → 0.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +2 -4
- data/.rubocop_todo.yml +1 -1
- data/CHANGELOG.md +12 -1
- data/Dockerfile +2 -3
- data/Rakefile +2 -1
- data/docs/Configuration.md +2 -3
- data/docs/Release.md +8 -7
- data/lib/oxidized/input/ssh.rb +1 -1
- data/lib/oxidized/model/junos.rb +4 -2
- data/lib/oxidized/node.rb +0 -1
- data/lib/oxidized/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a097920373ca6a37ab3ab33b5dcf32c3a82fdde10e04002ba1bf18d503363407
|
4
|
+
data.tar.gz: 1906accf8b231c23988c60ec4c778569ef156ca19d9c04c19e8ee1558f2213c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06f22b2315d040b5030676843df8bdb1ff431734d05e7ffa4f1793635209bb0376e0c6433b4d945bc5bb014ba4766f177640cbb42aed43a8a32abb7157e18594
|
7
|
+
data.tar.gz: 490da3c86e4bcc9d12674129253e6b5118ebefac8b6d47fdf931ea2db620212fe8d3a6ec71a42d78a02d3df8b9c3709f1b650758259026abe41a88593f54c608
|
data/.github/workflows/ruby.yml
CHANGED
@@ -19,10 +19,8 @@ jobs:
|
|
19
19
|
runs-on: ubuntu-latest
|
20
20
|
strategy:
|
21
21
|
matrix:
|
22
|
-
ruby-version: ['3.1', '3.2', '3.3', '3.4']
|
23
|
-
|
24
|
-
# ruby-version: ['3.1', '3.2', '3.3', '3.4', 'ruby-head']
|
25
|
-
# continue-on-error: ${{ matrix.ruby-version == 'ruby-head' }}
|
22
|
+
ruby-version: ['3.1', '3.2', '3.3', '3.4', 'ruby-head']
|
23
|
+
continue-on-error: ${{ matrix.ruby-version == 'ruby-head' }}
|
26
24
|
|
27
25
|
steps:
|
28
26
|
- uses: actions/checkout@v4
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2025-07-
|
3
|
+
# on 2025-07-18 14:37:30 UTC using RuboCop version 1.78.0.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
data/CHANGELOG.md
CHANGED
@@ -4,11 +4,22 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
6
6
|
|
7
|
+
## [0.34.1 - 2025-07-18]
|
8
|
+
This release contains small fixes and will include the new version of oxidized-web (0.17.0) in the docker container.
|
9
|
+
|
10
|
+
### Changed
|
11
|
+
- github: run ruby CI against ruby-head (@robertcheramy)
|
12
|
+
|
13
|
+
### Fixed
|
14
|
+
- input/ssh: hide Net::SSH errors and only display fatal logs unless input.debug = true. Fixes: #3574 (@robertcheramy)
|
15
|
+
- junos: fix unfrozen literal strings (@robertcheramy)
|
16
|
+
- spec/model: fix unfrozen literal strings and set a default prompt (@robertcheramy)
|
17
|
+
|
7
18
|
## [0.34.0 - 2025-07-15]
|
8
19
|
:warning: This release introduces a [new logging system](docs/Configuration.md#logging),
|
9
20
|
based on [semantic logger](https://logger.rocketjob.io/). The old configuration
|
10
21
|
(`log`, `syslog`) is still supported but obsolete and will be removed in a
|
11
|
-
future release, so be sure to migrate your
|
22
|
+
future release, so be sure to migrate your configuration.
|
12
23
|
|
13
24
|
### Added
|
14
25
|
- add iosxr support to SyslogMonitor (@deesel)
|
data/Dockerfile
CHANGED
@@ -79,15 +79,14 @@ RUN apt-get -qy update && \
|
|
79
79
|
# docker automated build gets shallow copy, but non-shallow copy cannot be unshallowed
|
80
80
|
git fetch --unshallow || true && \
|
81
81
|
rake install && \
|
82
|
+
# install oxidized-web
|
83
|
+
gem install oxidized-web --no-document && \
|
82
84
|
# remove the packages we do not need.
|
83
85
|
apt-get -qy remove build-essential ruby-dev && \
|
84
86
|
apt-get -qy autoremove && \
|
85
87
|
apt-get clean && \
|
86
88
|
rm -rf /var/lib/apt/lists/*
|
87
89
|
|
88
|
-
# install oxidized-web
|
89
|
-
RUN gem install oxidized-web --no-document
|
90
|
-
|
91
90
|
# clean up
|
92
91
|
WORKDIR /
|
93
92
|
RUN rm -rf /tmp/oxidized
|
data/Rakefile
CHANGED
@@ -26,6 +26,7 @@ task :test do
|
|
26
26
|
Rake::TestTask.new do |t|
|
27
27
|
t.libs << 'spec'
|
28
28
|
t.test_files = FileList['spec/**/*_spec.rb']
|
29
|
+
t.ruby_opts = ['-W:deprecated']
|
29
30
|
# Don't display ambiguity warning between regexp and division in models
|
30
31
|
t.warning = false
|
31
32
|
t.verbose = true
|
@@ -47,7 +48,7 @@ end
|
|
47
48
|
|
48
49
|
desc 'Tag the release'
|
49
50
|
task :tag do
|
50
|
-
system "git tag #{gemspec.version}"
|
51
|
+
system "git tag #{gemspec.version} -m 'Release #{gemspec.version}'"
|
51
52
|
end
|
52
53
|
|
53
54
|
desc 'Push to rubygems'
|
data/docs/Configuration.md
CHANGED
@@ -577,9 +577,8 @@ It will rotate between the log levels and log a warning with the new level
|
|
577
577
|
If you specified a log level for an appender, this log level won't be
|
578
578
|
changed.
|
579
579
|
|
580
|
-
> :warning: **Warning**
|
581
|
-
>
|
582
|
-
> future release of oxidized-web.
|
580
|
+
> :warning: **Warning** You need oxidized-web 0.17.0 and above for this or
|
581
|
+
> it will kill the whole oxidized application.
|
583
582
|
|
584
583
|
### Dump running threads
|
585
584
|
With the SIGTTIN signal, oxidized will log a backtrace for each of its threads.
|
data/docs/Release.md
CHANGED
@@ -2,22 +2,22 @@
|
|
2
2
|
This document is targeted at oxidized maintainers. It describes the release process.
|
3
3
|
|
4
4
|
## Version numbering
|
5
|
-
Oxidized versions are
|
5
|
+
Oxidized versions are numbered like major.minor.patch
|
6
6
|
- currently, the major version is 0.
|
7
7
|
- minor is incremented when releasing new features.
|
8
8
|
- patch is incremented when releasing fixes only.
|
9
9
|
|
10
10
|
## Review changes
|
11
|
-
Run `git diff 0.30.0
|
11
|
+
Run `git diff 0.30.0` (where `0.30.0` is to be changed to the last release) and review
|
12
12
|
all the changes that have been done. Have a specific look at changes you don't understand.
|
13
13
|
|
14
|
-
For a graphical compare, use `git difftool -d 0.30.0
|
14
|
+
For a graphical compare, use `git difftool -d 0.30.0`.
|
15
15
|
|
16
16
|
## Update the gem dependencies to the latest versions
|
17
17
|
```
|
18
|
-
bundle
|
18
|
+
bundle outdated
|
19
19
|
bundle update
|
20
|
-
bundle
|
20
|
+
bundle outdated
|
21
21
|
```
|
22
22
|
|
23
23
|
## Update rubocup .rubocop_todo.yml
|
@@ -49,9 +49,10 @@ Test the git code and the container against as much device types and
|
|
49
49
|
environments as you can.
|
50
50
|
|
51
51
|
## Prepare the release in your working repository
|
52
|
-
1. Merge the Pull Request into master
|
52
|
+
1. Merge the Pull Request into master with the commit message
|
53
|
+
`chore(release): release version 0.3x.y`
|
53
54
|
2. `git pull` master
|
54
|
-
3. Tag the commit with `git tag -a 0.xx.yy -m "Release 0.xx.yy"`
|
55
|
+
3. Tag the commit with `git tag -a 0.xx.yy -m "Release 0.xx.yy"` or `rake tag`
|
55
56
|
4. Build the gem with ‘rake build’
|
56
57
|
5. Run `git diff` to check if there have been more changes (there shouldn't)
|
57
58
|
6. Install an test the gem locally
|
data/lib/oxidized/input/ssh.rb
CHANGED
@@ -164,7 +164,7 @@ module Oxidized
|
|
164
164
|
|
165
165
|
# Use our logger for Net:SSH
|
166
166
|
ssh_logger = SemanticLogger[Net::SSH]
|
167
|
-
ssh_logger.level = Oxidized.config.input.debug? ? :debug : :
|
167
|
+
ssh_logger.level = Oxidized.config.input.debug? ? :debug : :fatal
|
168
168
|
ssh_opts[:logger] = ssh_logger
|
169
169
|
|
170
170
|
ssh_opts
|
data/lib/oxidized/model/junos.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
class JunOS < Oxidized::Model
|
2
4
|
using Refinements
|
3
5
|
comment '# '
|
@@ -26,7 +28,7 @@ class JunOS < Oxidized::Model
|
|
26
28
|
end
|
27
29
|
|
28
30
|
post do
|
29
|
-
out = String.new
|
31
|
+
out = String.new
|
30
32
|
case @model
|
31
33
|
when 'mx960'
|
32
34
|
out << cmd('show chassis fabric reachability') { |cfg| comment cfg }
|
@@ -34,7 +36,7 @@ class JunOS < Oxidized::Model
|
|
34
36
|
out << cmd('show virtual-chassis') { |cfg| comment cfg }
|
35
37
|
when /^srx/
|
36
38
|
out << cmd('show chassis cluster status') do |cfg|
|
37
|
-
cfg.lines.count <= 1 && cfg.include?("error:") ?
|
39
|
+
cfg.lines.count <= 1 && cfg.include?("error:") ? String.new : comment(cfg)
|
38
40
|
end
|
39
41
|
end
|
40
42
|
out
|
data/lib/oxidized/node.rb
CHANGED
data/lib/oxidized/version.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Oxidized
|
4
|
-
VERSION = '0.34.
|
5
|
-
VERSION_FULL = '0.34.
|
4
|
+
VERSION = '0.34.1'
|
5
|
+
VERSION_FULL = '0.34.1'
|
6
6
|
def self.version_set
|
7
7
|
version_full = %x(git describe --tags).chop rescue ""
|
8
8
|
version = %x(git describe --tags --abbrev=0).chop rescue ""
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oxidized
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.34.
|
4
|
+
version: 0.34.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Saku Ytti
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2025-07-
|
13
|
+
date: 2025-07-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: asetus
|