network-utility 1.1.13 → 1.1.14
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: 247365231bb4311c22c1264cea3d15b167314301b40a0500c957e9a0b7a5b82f
|
4
|
+
data.tar.gz: f7dd09a3a9a224aa4909b30995bbf4526b11d2f159dd9c071e705e47f37249ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d68a4f5ab040d25e281f5b22becacd4cbd804ce198116c8750d397da8d459bf2f8fb32682a28617d8dc66f5569d93c8dce49576ee433850159d0e96f8b4d8014
|
7
|
+
data.tar.gz: 5b03bd1e0d29c009612790bf277f5b743a29d827d2c04f59d261497e1065be65cdbe846ed25157d5b2e3e314a60555e18a163e0553284bdd455e8a01221f6877
|
data/document/config.md
CHANGED
@@ -698,7 +698,7 @@ module M6000
|
|
698
698
|
flag = line.size==80
|
699
699
|
end
|
700
700
|
end
|
701
|
-
raw = newraw
|
701
|
+
raw = newraw.join("\n")
|
702
702
|
content = self.preprocess(raw)#prepart.split(/#{hostname}#( )*\n/)[0]
|
703
703
|
|
704
704
|
begin
|
@@ -748,7 +748,7 @@ module M6000_8
|
|
748
748
|
flag = line.size==80
|
749
749
|
end
|
750
750
|
end
|
751
|
-
raw = newraw
|
751
|
+
raw = newraw.join("\n")
|
752
752
|
hostname = guards[0] || self.preprocess(raw).split("\n").find{|line|line.include?("hostname ")}.to_s.split("hostname ")[1]
|
753
753
|
prepart = self.preprocess(raw).split(/#{hostname}#( )*show running-config( )*\n/)[1]
|
754
754
|
return cfg unless prepart
|
@@ -800,7 +800,7 @@ module M6000_8E
|
|
800
800
|
flag = line.size==80
|
801
801
|
end
|
802
802
|
end
|
803
|
-
raw = newraw
|
803
|
+
raw = newraw.join("\n")
|
804
804
|
hostname = guards[0] || self.preprocess(raw).split("\n").find{|line|line.include?("hostname ")}.to_s.split("hostname ")[1]
|
805
805
|
prepart = self.preprocess(raw).split(/#{hostname}#( )*show running-config( )*\n/)[1]
|
806
806
|
return cfg unless prepart
|
@@ -853,7 +853,7 @@ module M6000_16E
|
|
853
853
|
flag = line.size==80
|
854
854
|
end
|
855
855
|
end
|
856
|
-
raw = newraw
|
856
|
+
raw = newraw.join("\n")
|
857
857
|
hostname = guards[0] || self.preprocess(raw).split("\n").find{|line|line.include?("hostname ")}.to_s.split("hostname ")[1]
|
858
858
|
prepart = self.preprocess(raw).split(/#{hostname}#( )*show running-config( )*\n/)[1]
|
859
859
|
return cfg unless prepart
|
@@ -905,7 +905,7 @@ module M6000_18S
|
|
905
905
|
flag = line.size==80
|
906
906
|
end
|
907
907
|
end
|
908
|
-
raw = newraw
|
908
|
+
raw = newraw.join("\n")
|
909
909
|
hostname = guards[0] || self.preprocess(raw).split("\n").find{|line|line.include?("hostname ")}.to_s.split("hostname ")[1]
|
910
910
|
prepart = self.preprocess(raw).split(/#{hostname}#( )*show running-config( )*\n/)[1]
|
911
911
|
return cfg unless prepart
|
@@ -958,7 +958,7 @@ module T8000_18
|
|
958
958
|
flag = line.size==80
|
959
959
|
end
|
960
960
|
end
|
961
|
-
raw = newraw
|
961
|
+
raw = newraw.join("\n")
|
962
962
|
hostname = guards[0] || self.preprocess(raw).split("\n").find{|line|line.include?("hostname ")}.to_s.split("hostname ")[1]
|
963
963
|
prepart = self.preprocess(raw).split(/#{hostname}#( )*show running-config( )*\n/)[1]
|
964
964
|
return cfg unless prepart
|
@@ -1011,7 +1011,7 @@ module ZXCTN9000_8EA
|
|
1011
1011
|
flag = line.size==80
|
1012
1012
|
end
|
1013
1013
|
end
|
1014
|
-
raw = newraw
|
1014
|
+
raw = newraw.join("\n")
|
1015
1015
|
hostname = guards[0] || self.preprocess(raw).split("\n").find{|line|line.include?("hostname ")}.to_s.split("hostname ")[1]
|
1016
1016
|
# prepart = self.preprocess(raw).split(/#{hostname}#( )*show running-config( )*\n/)[1]
|
1017
1017
|
# return cfg unless prepart
|
@@ -1064,7 +1064,7 @@ module ZXCTN9000_18EA
|
|
1064
1064
|
flag = line.size==80
|
1065
1065
|
end
|
1066
1066
|
end
|
1067
|
-
raw = newraw
|
1067
|
+
raw = newraw.join("\n")
|
1068
1068
|
hostname = guards[0] || self.preprocess(raw).split("\n").find{|line|line.include?("hostname ")}.to_s.split("hostname ")[1]
|
1069
1069
|
# prepart = self.preprocess(raw).split(/#{hostname}#( )*show running-config( )*\n/)[1]
|
1070
1070
|
# return cfg unless prepart
|
@@ -1117,7 +1117,7 @@ module V6000
|
|
1117
1117
|
flag = line.size==80
|
1118
1118
|
end
|
1119
1119
|
end
|
1120
|
-
raw = newraw
|
1120
|
+
raw = newraw.join("\n")
|
1121
1121
|
hostname = guards[0] || self.preprocess(raw).split("\n").find{|line|line.include?("hostname ")}.to_s.split("hostname ")[1]
|
1122
1122
|
# prepart = self.preprocess(raw).split(/#{hostname}#( )*show running-config( )*\n/)[1]
|
1123
1123
|
# return cfg unless prepart
|
data/network.rb
CHANGED