network-utility 1.1.29 → 1.1.30

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/document/config.md +2 -0
  3. data/network.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de383d07d38127a54118125a871116fffdde68feff561495af35d621cbd6477c
4
- data.tar.gz: 8d8086c0b54c5c2916cf1656455ec2c8db118da31a573d6c97a293adb2bd20aa
3
+ metadata.gz: 76df9b9cedac6e23575d726c35bd8b4af04a259e4a3b9ddf8350d95755bb8241
4
+ data.tar.gz: 15dab7c453a86eacce87a525383f53f8a0fc0ab49b1d8309742fd3d57f3432c9
5
5
  SHA512:
6
- metadata.gz: 965d4d24f3879da46c1e4495ba007977b4a28e32b568d5a012158a876d8ec8d81a705316bd0704313bf5376e19d52ff4a6aa222eb5c8e5fa14d7d9e7044f8506
7
- data.tar.gz: a207162c2cf187f66b795ee4254d5c1df16b974a8cebffee328b49c75e361d5a4d33598a0bf3d37cb79bfb3e7bab563011ccd5fc0bb090d5ac2afc551266bb18
6
+ metadata.gz: 7c275d86741c490a05fd7f14e4692bc9eb6f64fa40c69bfcf688c611d848c93236e8c5fbdcd99325ecd3e758e18ffee2d41931760635ce03658876292467df2e
7
+ data.tar.gz: fd78a82529aa6e046e6fa610e664db2981a9d96752c5785d8bf0e6d1ac97ecb8a7a6fc99b3bbea1e21323bbc09f98544b65b70e8d345672f1e52756c77a5be24
data/document/config.md CHANGED
@@ -940,6 +940,7 @@ module M6000_16E
940
940
  raw = newraw.join("\n")
941
941
  hostname = guards[0] || self.preprocess(raw).split("\n").find{|line|line.include?("hostname ")}.to_s.split("hostname ")[1]
942
942
  prepart = self.preprocess(raw).split(/#{hostname}#( )*show running-config( )*\n/)[1]
943
+ prepart = self.preprocess(raw).split("show running-config\n")[1].split("<<<<")[0] unless prepart # ssh >>>>
943
944
  return cfg unless prepart
944
945
  content = prepart.split(/#{hostname}#( )*\n/)[0]
945
946
  begin
@@ -1060,6 +1061,7 @@ module T8000_18
1060
1061
  raw = newraw.join("\n")
1061
1062
  hostname = guards[0] || self.preprocess(raw).split("\n").find{|line|line.include?("hostname ")}.to_s.split("hostname ")[1]
1062
1063
  prepart = self.preprocess(raw).split(/#{hostname}#( )*show running-config( )*\n/)[1]
1064
+ prepart = self.preprocess(raw).split("show running-config\n")[1].split("<<<<")[0] unless prepart # ssh >>>>
1063
1065
  return cfg unless prepart
1064
1066
  content = prepart.split(/#{hostname}#( )*\n/)[0]
1065
1067
 
data/network.rb CHANGED
@@ -22,5 +22,5 @@
22
22
  ].each{|mod|require mod}
23
23
 
24
24
  module Network
25
- VERSION = '1.1.29'
25
+ VERSION = '1.1.30'
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: network-utility
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.29
4
+ version: 1.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt