network-utility 1.1.30 → 1.1.32

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 +18 -21
  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: 76df9b9cedac6e23575d726c35bd8b4af04a259e4a3b9ddf8350d95755bb8241
4
- data.tar.gz: 15dab7c453a86eacce87a525383f53f8a0fc0ab49b1d8309742fd3d57f3432c9
3
+ metadata.gz: feb48dd27066bd917d84d4eac5b16351786c77814bef15432f6b026d81eb3d7d
4
+ data.tar.gz: ef22b4c5f9ebfdb64d8cb53c7c9eaadd7c47cc9609064f11352866a23d9897e5
5
5
  SHA512:
6
- metadata.gz: 7c275d86741c490a05fd7f14e4692bc9eb6f64fa40c69bfcf688c611d848c93236e8c5fbdcd99325ecd3e758e18ffee2d41931760635ce03658876292467df2e
7
- data.tar.gz: fd78a82529aa6e046e6fa610e664db2981a9d96752c5785d8bf0e6d1ac97ecb8a7a6fc99b3bbea1e21323bbc09f98544b65b70e8d345672f1e52756c77a5be24
6
+ metadata.gz: 24359140f5b7432963e2f89429d8508eaf138ac801de5903595b189173fe915524d9b87277c82de04a76c9e1e987f43a38d62c86b145fa13de3d501b6f59d64f
7
+ data.tar.gz: 35d2f9d54e47a59bdd4a0eb8dd97ce736a354437b2a7fa4b9a3771e919bb88d6fcf94b60e982ca70714db60e8ab9af2eefcc21c2b8319b80a174329a6d901193
data/document/config.md CHANGED
@@ -820,9 +820,9 @@ module M6000_8
820
820
  end
821
821
  raw = newraw.join("\n")
822
822
  hostname = guards[0] || self.preprocess(raw).split("\n").find{|line|line.include?("hostname ")}.to_s.split("hostname ")[1]
823
- prepart = self.preprocess(raw).split(/#{hostname}#( )*show running-config( )*\n/)[1]
824
- return cfg unless prepart
825
- content = prepart.split(/#{hostname}#( )*\n/)[0]
823
+ # prepart = self.preprocess(raw).split(/#{hostname}#( )*show running-config( )*\n/)[1]
824
+ # return cfg unless prepart
825
+ content = self.preprocess(raw)#prepart.split(/#{hostname}#( )*\n/)[0]
826
826
  begin
827
827
  XmlParser.parse("<root>#{content}</root>").elements.each do|element|
828
828
  cfg[element.name] = element.attributes[:text]
@@ -879,10 +879,9 @@ module M6000_8E
879
879
  end
880
880
  raw = newraw.join("\n")
881
881
  hostname = guards[0] || self.preprocess(raw).split("\n").find{|line|line.include?("hostname ")}.to_s.split("hostname ")[1]
882
- prepart = self.preprocess(raw).split(/#{hostname}#( )*show running-config( )*\n/)[1]
883
- return cfg unless prepart
884
- content = prepart.split(/#{hostname}#( )*\n/)[0]
885
-
882
+ # prepart = self.preprocess(raw).split(/#{hostname}#( )*show running-config( )*\n/)[1]
883
+ # return cfg unless prepart
884
+ content = self.preprocess(raw)#prepart.split(/#{hostname}#( )*\n/)[0]
886
885
  begin
887
886
  XmlParser.parse("<root>#{content}</root>").elements.each do|element|
888
887
  cfg[element.name] = element.attributes[:text]
@@ -939,10 +938,10 @@ module M6000_16E
939
938
  end
940
939
  raw = newraw.join("\n")
941
940
  hostname = guards[0] || self.preprocess(raw).split("\n").find{|line|line.include?("hostname ")}.to_s.split("hostname ")[1]
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 >>>>
944
- return cfg unless prepart
945
- content = prepart.split(/#{hostname}#( )*\n/)[0]
941
+ # prepart = self.preprocess(raw).split(/#{hostname}#( )*show running-config( )*\n/)[1]
942
+ # prepart = self.preprocess(raw).split("show running-config\n")[1].split("<<<<")[0] unless prepart # ssh >>>>
943
+ # return cfg unless prepart
944
+ content = self.preprocess(raw)#prepart.split(/#{hostname}#( )*\n/)[0]
946
945
  begin
947
946
  XmlParser.parse("<root>#{content}</root>").elements.each do|element|
948
947
  cfg[element.name] = element.attributes[:text]
@@ -999,11 +998,10 @@ module M6000_18S
999
998
  end
1000
999
  raw = newraw.join("\n")
1001
1000
  hostname = guards[0] || self.preprocess(raw).split("\n").find{|line|line.include?("hostname ")}.to_s.split("hostname ")[1]
1002
- prepart = self.preprocess(raw).split(/#{hostname}#( )*show running-config( )*\n/)[1]
1003
- prepart = self.preprocess(raw).split("show running-config\n")[1].split("<<<<")[0] unless prepart # ssh >>>>
1004
- return cfg unless prepart
1005
- content = prepart.split(/#{hostname}#( )*\n/)[0]
1006
-
1001
+ # prepart = self.preprocess(raw).split(/#{hostname}#( )*show running-config( )*\n/)[1]
1002
+ # prepart = self.preprocess(raw).split("show running-config\n")[1].split("<<<<")[0] unless prepart # ssh >>>>
1003
+ # return cfg unless prepart
1004
+ content = self.preprocess(raw)#prepart.split(/#{hostname}#( )*\n/)[0]
1007
1005
  begin
1008
1006
  XmlParser.parse("<root>#{content}</root>").elements.each do|element|
1009
1007
  cfg[element.name] = element.attributes[:text]
@@ -1060,11 +1058,10 @@ module T8000_18
1060
1058
  end
1061
1059
  raw = newraw.join("\n")
1062
1060
  hostname = guards[0] || self.preprocess(raw).split("\n").find{|line|line.include?("hostname ")}.to_s.split("hostname ")[1]
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 >>>>
1065
- return cfg unless prepart
1066
- content = prepart.split(/#{hostname}#( )*\n/)[0]
1067
-
1061
+ # prepart = self.preprocess(raw).split(/#{hostname}#( )*show running-config( )*\n/)[1]
1062
+ # prepart = self.preprocess(raw).split("show running-config\n")[1].split("<<<<")[0] unless prepart # ssh >>>>
1063
+ # return cfg unless prepart
1064
+ content = self.preprocess(raw)#prepart.split(/#{hostname}#( )*\n/)[0]
1068
1065
  begin
1069
1066
  XmlParser.parse("<root>#{content}</root>").elements.each do|element|
1070
1067
  cfg[element.name] = element.attributes[:text]
data/network.rb CHANGED
@@ -22,5 +22,5 @@
22
22
  ].each{|mod|require mod}
23
23
 
24
24
  module Network
25
- VERSION = '1.1.30'
25
+ VERSION = '1.1.32'
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.30
4
+ version: 1.1.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt