network-utility 1.1.34 → 1.1.35
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 +7 -7
- 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: cbf848ef21323dfb33a4d04d450273a873eb197f829406e9132da15492f6f731
|
|
4
|
+
data.tar.gz: 9c7c8bd10781933cb6a0ec3dc0720f4f78baa94b4687f374546a09e8c055ac5c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8c7650765cfaa6506dd001b429672a2e191a15487c7484c45ea646c048ca10f10236622b2de029f3f7131295bc5fc61e30afd349e134907907b2832c9c8a0564
|
|
7
|
+
data.tar.gz: faa9156048c100952d9a79c6f51f03a353bd81afbdbb319185a71b85813f3f766aa21b98d9de303ec082872b9e91d0265a783c8ff2383f690e982b03e323768d
|
data/document/config.md
CHANGED
|
@@ -227,7 +227,7 @@ module NE40E
|
|
|
227
227
|
hostname = guards[0] || raw.split("\n").find{|line|line.include?("sysname ")}.to_s.split("sysname ")[1]
|
|
228
228
|
prepart = raw.split(/#{hostname}>( )*display current-configuration( )*\n/)[1]
|
|
229
229
|
return cfg unless prepart
|
|
230
|
-
content = prepart.split(/<#{hostname}>( )*\n/)[0]
|
|
230
|
+
content = raw#prepart.split(/<#{hostname}>( )*\n/)[0]
|
|
231
231
|
pretent = "\n"+content
|
|
232
232
|
while pretent.include?("\n#\n#"); pretent = pretent.gsub("\n#\n#","\n#") end
|
|
233
233
|
pieces = pretent.split("\n#\n").select{|pc|pc.strip != ''}
|
|
@@ -256,7 +256,7 @@ module NE80E
|
|
|
256
256
|
hostname = guards[0] || raw.split("\n").find{|line|line.include?("sysname ")}.to_s.split("sysname ")[1]
|
|
257
257
|
prepart = raw.split(/#{hostname}>( )*display current-configuration( )*\n/)[1]
|
|
258
258
|
return cfg unless prepart
|
|
259
|
-
content = prepart.split(/<#{hostname}>( )*\n/)[0]
|
|
259
|
+
content = raw#prepart.split(/<#{hostname}>( )*\n/)[0]
|
|
260
260
|
pretent = "\n"+content
|
|
261
261
|
while pretent.include?("\n#\n#"); pretent = pretent.gsub("\n#\n#","\n#") end
|
|
262
262
|
pieces = pretent.split("\n#\n").select{|pc|pc.strip != ''}
|
|
@@ -294,11 +294,11 @@ module ME60_16
|
|
|
294
294
|
end
|
|
295
295
|
cfg = {}
|
|
296
296
|
hostname = guards[0] || raw.split("\n").find{|line|line.include?("sysname ")}.to_s.split("sysname ")[1]
|
|
297
|
-
prepart = raw.split(/#{hostname}>( )*display current-configuration( )*\n/)[1]
|
|
298
|
-
prepart = raw.split("#{hostname}>display current-configuration\n")[1] unless prepart
|
|
299
|
-
return cfg unless prepart
|
|
300
|
-
content = prepart.split(/<#{hostname}>( )
|
|
301
|
-
content = prepart.split("\nreturn")[0] unless content
|
|
297
|
+
# prepart = raw.split(/#{hostname}>( )*display current-configuration( )*\n/)[1]
|
|
298
|
+
# prepart = raw.split("#{hostname}>display current-configuration\n")[1] unless prepart
|
|
299
|
+
# return cfg unless prepart
|
|
300
|
+
content = raw#prepart.split(/<#{hostname}>( )*\n/)[0]
|
|
301
|
+
# content = prepart.split("\nreturn")[0] unless content
|
|
302
302
|
pretent = "\n"+content
|
|
303
303
|
while pretent.include?("\n#\n#"); pretent = pretent.gsub("\n#\n#","\n#") end
|
|
304
304
|
pieces = pretent.split("\n#\n").select{|pc|pc.strip != ''}
|
data/network.rb
CHANGED