network-utility 1.1.32 → 1.1.33
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 +9 -9
- 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: 4ec510299d8eff2a5f6b035dfabfdf58c59cda3fb7d104316bb40f84b264eb15
|
|
4
|
+
data.tar.gz: 69d3ca5ad3d9f06070ce84719af37d47032472799d1a1c0c9fd01814ef2363f1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 705bf98e0e807e21685e9ca8ec7d566370ba83e48f98ffeb2209ee395ccbf31229a4558ad8264ad90180da869ec99946045f20749ed0fa701af1eea411987ddd
|
|
7
|
+
data.tar.gz: 6e5032cdffdd265c95562fa3f7e92f3eb57407ae9de593fd1733a0eb2accc0514e3f3562bcb1275548eb9c77c14a568ab4be2b495b622580ac9bbe1cf450a3fe
|
data/document/config.md
CHANGED
|
@@ -938,9 +938,9 @@ module M6000_16E
|
|
|
938
938
|
end
|
|
939
939
|
raw = newraw.join("\n")
|
|
940
940
|
hostname = guards[0] || self.preprocess(raw).split("\n").find{|line|line.include?("hostname ")}.to_s.split("hostname ")[1]
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
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
944
|
content = self.preprocess(raw)#prepart.split(/#{hostname}#( )*\n/)[0]
|
|
945
945
|
begin
|
|
946
946
|
XmlParser.parse("<root>#{content}</root>").elements.each do|element|
|
|
@@ -998,9 +998,9 @@ module M6000_18S
|
|
|
998
998
|
end
|
|
999
999
|
raw = newraw.join("\n")
|
|
1000
1000
|
hostname = guards[0] || self.preprocess(raw).split("\n").find{|line|line.include?("hostname ")}.to_s.split("hostname ")[1]
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
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
1004
|
content = self.preprocess(raw)#prepart.split(/#{hostname}#( )*\n/)[0]
|
|
1005
1005
|
begin
|
|
1006
1006
|
XmlParser.parse("<root>#{content}</root>").elements.each do|element|
|
|
@@ -1058,9 +1058,9 @@ module T8000_18
|
|
|
1058
1058
|
end
|
|
1059
1059
|
raw = newraw.join("\n")
|
|
1060
1060
|
hostname = guards[0] || self.preprocess(raw).split("\n").find{|line|line.include?("hostname ")}.to_s.split("hostname ")[1]
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
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
1064
|
content = self.preprocess(raw)#prepart.split(/#{hostname}#( )*\n/)[0]
|
|
1065
1065
|
begin
|
|
1066
1066
|
XmlParser.parse("<root>#{content}</root>").elements.each do|element|
|
data/network.rb
CHANGED