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.
- checksums.yaml +4 -4
- data/document/config.md +18 -21
- data/network.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: feb48dd27066bd917d84d4eac5b16351786c77814bef15432f6b026d81eb3d7d
|
|
4
|
+
data.tar.gz: ef22b4c5f9ebfdb64d8cb53c7c9eaadd7c47cc9609064f11352866a23d9897e5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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