foreman_ipam 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 525cdc684da2e1f4be01e09ece21a55e344ac04d993b8c637a064667abd3b0aa
4
- data.tar.gz: 28d7e7bbb08f7d58faccf393fd1f604dd1c7066b95c2e178294757dfd34fe335
3
+ metadata.gz: 1893cec1fd30e76e4266da9c4a3c5f67feeb3f37d36bbee3770717084e22efee
4
+ data.tar.gz: 7ce09d767f39102bddfc6fd5edbfcc792c29e21351e16d4f62c69b2d673048b3
5
5
  SHA512:
6
- metadata.gz: b11c50e3153dd419f03eacd46eb03b21ffc089947818f9f829c21dc8e91e279786ed82159fadf13950bb284a24bcd4e5d35d139be29b965842132650ffb60078
7
- data.tar.gz: 8853c0617dc7bbcfc9c412d9de99ec966b343ae2783fe06f8b4ca9f117902a403bf4fc42275ab9b3c3ab58417d73a3676431c7d51e9afb1530fef3a68768dc47
6
+ metadata.gz: 7a26a7fd3e864c755b792efc25f9e173f7791e029bc5220bcaae1f01867145dfd12befd445618a11be8067dc254074262044408b682731452d070bc23742b027
7
+ data.tar.gz: e44c723f9cf5605e6eaaa5cda49d243db3e97b0c8fc925e1b68e24f61db1f260f25d87cc0eadfb109be50b4e98380f024a5a53da2eb71260df4468c53aedf544
@@ -6,7 +6,7 @@ module ForemanIpam
6
6
  end
7
7
 
8
8
  def subnets
9
- @subnets = Phpipam.proxy.get_subnets(params[:section_name])
9
+ @subnets = Phpipam.proxy.get_subnets_by_section(params[:section_name])
10
10
  render :json => @subnets.to_json, :status => :ok
11
11
  end
12
12
  end
@@ -1,6 +1,6 @@
1
1
  <h1>IPAM Integration Dashboard</h1>
2
2
 
3
- <% if @response && @response.length > 0 %>
3
+ <% if @response['data'] && @response['data'].length > 0 %>
4
4
  <h2>phpIPAM</h2>
5
5
  <h3>Sections:</h3>
6
6
  <table class="<%= table_css_classes 'table-fixed' %>">
@@ -11,7 +11,7 @@
11
11
  </tr>
12
12
  </thead>
13
13
  <tbody>
14
- <% @response.each do |section| %>
14
+ <% @response['data'].each do |section| %>
15
15
  <tr>
16
16
  <td class="ellipsis">
17
17
  <a onclick="getSubnets('<%= section['id'] %>', '<%= section['name'] %>')"><%= section['name'] %></a>
@@ -26,7 +26,7 @@
26
26
  <% else %>
27
27
  <div class="alert alert-warning ">
28
28
  <span class="pficon pficon-warning-triangle-o "></span>
29
- <span class="text"><%= _("No sections found in the External IPAM instance.") %></span>
29
+ <span class="text"><%= _("No sections found in External IPAM.") %></span>
30
30
  </div>
31
31
  <% end %>
32
32
 
@@ -56,7 +56,7 @@
56
56
  <div class='col-md-6'><strong>Description</strong></strong></div><br />
57
57
  `;
58
58
 
59
- subnets.forEach(function(item) {
59
+ subnets['data'].forEach(function(item) {
60
60
  subnet_container.innerHTML += `
61
61
  <div class='col-md-2'>` + item['subnet'] + `/` + item['mask'] + `</div>
62
62
  <div class='col-md-6'>` + item['description'] + `</div><br />
@@ -1,3 +1,3 @@
1
1
  module ForemanIpam
2
- VERSION = '0.0.6'.freeze
2
+ VERSION = '0.0.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_ipam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-27 00:00:00.000000000 Z
11
+ date: 2019-10-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Plugin for IPAM integration with various IPAM providers
14
14
  email: