palo_alto 0.2.5 → 0.2.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 010c11334bea64fbc07fbb06bc6012dabfd9a6d85de8b0aa1a8f322dcf57f4bd
4
- data.tar.gz: '09b332777e50f2093dfc109654d73c5ad500bee4885516bc4a5bdfde90310502'
3
+ metadata.gz: 5a25d17faa0330fc4194256539ff6ddef0912d658c469617393bc1f359fe593e
4
+ data.tar.gz: d3c7dcb77528c58caffdfda9ce8932d5eed1c720575c54e1570cb6e661af0f70
5
5
  SHA512:
6
- metadata.gz: 55ac3e340d6c597954684730cae171c87faa143b173d58130fc5c0d8eb02657834bad461e638ccfbc786fe011aaeb3bbea41d095912e5eb09cff5221a5e6b28e
7
- data.tar.gz: 37b6082fb4203ca1a6ad81cb117202764ba5b31c8a7d0e230259cb9730f5cd5427e8cb238a6fb342e3f10cd88ab64b4007922723afa423aa7e9a6ff194f5fe52
6
+ metadata.gz: 979bdbc0d6b991b518dad4f7176a4fa381e84d0072b73e467ea3835fd139e93c6579f0da2de6fc172323ee6cc31ca01fb12a4bf3218ec5b1985b2a9cdf41534c
7
+ data.tar.gz: dd7a894a3388f97734a77ea2779c28cc91b1f33fdfbf1c7d573066e212d6d848d20cf07151172bba4942eac8ab17600ca204b15950b78bfea64964f372941ec9
data/console.rb CHANGED
@@ -10,7 +10,6 @@ require_relative './lib/palo_alto'
10
10
 
11
11
  client = PaloAlto::XML.new(
12
12
  host: ENV['PALO_ALTO_HOST'],
13
- port: '443',
14
13
  username: ENV['PALO_ALTO_USER'],
15
14
  password: ENV['PALO_ALTO_PASSWORD'],
16
15
  debug: ENV['PALO_ALTO_DEBUG']&.split(/\s/)&.map(&:to_sym) || []
@@ -1,4 +1,4 @@
1
1
  require 'palo_alto'
2
2
 
3
- client = PaloAlto::XML.new(host: "panorama-test", port: "443", username: "admin", password: "Admin123!", debug: [:sent, :received, :statistics])
3
+ client = PaloAlto::XML.new(host: "panorama-test", username: "admin", password: "Admin123!", debug: [:sent, :received, :statistics])
4
4
 
@@ -1,6 +1,6 @@
1
1
  require 'palo_alto'
2
2
 
3
- client = PaloAlto::XML.new(host: "panorama-test", port: "443", username: "admin", password: "Admin123!", debug: [:sent, :received, :statistics])
3
+ client = PaloAlto::XML.new(host: "panorama-test", username: "admin", password: "Admin123!", debug: [:sent, :received, :statistics])
4
4
  dg = 'PLAYGROUND'
5
5
 
6
6
  # create a tag
data/examples/test_log.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'palo_alto'
2
2
 
3
- client = PaloAlto::XML.new(host: "panorama-test", port: "443", username: "admin", password: "Admin123!", debug: [:statistics, :warnings, :_sent, :_received])
3
+ client = PaloAlto::XML.new(host: "panorama-test", username: "admin", password: "Admin123!", debug: [:statistics, :warnings, :_sent, :_received])
4
4
 
5
5
  query = "( full-path contains '/config/devices/entry[@name=\\'localhost.localdomain\\']/device-group/entry[@name=\\'gr\\']/address/entry[@name=\\'Blah_19\\']' )"
6
6
  l=client.log(query: query, log_type: 'config', nlogs: 50, show_detail: true, days: nil)
data/examples/test_op.rb CHANGED
@@ -111,7 +111,7 @@ l = {
111
111
  }
112
112
 
113
113
 
114
- client = PaloAlto::XML.new(host: "panorama-test", port: "443", username: "admin", password: "Admin123!", debug: [:sent, :received])
114
+ client = PaloAlto::XML.new(host: "panorama-test", username: "admin", password: "Admin123!", debug: [:sent, :received])
115
115
 
116
116
  #pp client.op.execute(a)
117
117
  #pp client.op.execute(b)