foreman_ipam 0.0.13 → 0.0.14

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: 4f59711fc68182d93f20b86afd9858132bfde9bda13165c0c63fd7d31e9ff108
4
- data.tar.gz: 004b0943e3df0e23b6fee3a940dd4a499726b5cc88d8fc0cb7832a96cce5c042
3
+ metadata.gz: b72896f702365297c33aac7442d130618965c3f440d43f3f0b697b343aadda02
4
+ data.tar.gz: 3cbe788d2695551868cae5c6405df3ec20ebe7b3a5f01e8bb0d253e36b80f46e
5
5
  SHA512:
6
- metadata.gz: ea5658d3a7dba54454682fbbf1f1eebe70ffd93e1538fe8292581787b18cc715c46ea8173d55df6229bcb65e54bf33b4f10df9227dbcfd9a03215c61c82bf348
7
- data.tar.gz: 763ad8aff566567428392ad0182bebf370616ed4ab3863531c29460d832bccd052eec728e243ff21061f50abbb7530ef328714e642d70a1fa65465c290ad9786
6
+ metadata.gz: 7691958146ba68d6db8f13939f597cea3ee759409f942b751f24f782455d6c464695662c7d799855b8656cd3bacbf881891ef7c691725bafa7f16cac609db24d
7
+ data.tar.gz: 5a2d8c4209274163799aa5b1e4fda7103465b012eabdeb8a9f58d51446b21611fc38b7505b691efa135c7fd7583003f04de2983722a6a94309a7f4b07142f77e
@@ -12,7 +12,7 @@ module ForemanIpam
12
12
 
13
13
  def subnets
14
14
  begin
15
- @subnets = Phpipam.proxy.get_subnets_by_group(URI.escape(params[:group_name]))
15
+ @subnets = Phpipam.proxy.get_subnets_by_group(URI.escape(params[:group]))
16
16
  rescue => e
17
17
  flash.now[:notice] = e.message
18
18
  end
@@ -24,7 +24,7 @@
24
24
  <% @response['data'].each do |section| %>
25
25
  <tr>
26
26
  <td class="ellipsis">
27
- <a href="#" onclick="getSubnets('<%= section['id'] %>', '<%= section['name'] %>')"><%= section['name'] %></a>
27
+ <a href="#" onclick="getSubnets('<%= section['name'] %>')"><%= section['name'] %></a>
28
28
  </td>
29
29
  <td class="ellipsis">
30
30
  <%= section['description'] %>
@@ -38,13 +38,13 @@
38
38
  <div id="subnet_container"></div>
39
39
 
40
40
  <script>
41
- function getSubnets(section_id, section_name) {
41
+ function getSubnets(section_name) {
42
42
  var subnet_container = document.getElementById('subnet_container');
43
43
  subnet_container.innerHTML = '<h2>Subnets for ' + section_name + '</h2>';
44
44
 
45
45
  $.ajax({
46
46
  type: "GET", url: "/ipam/phpipam/subnets",
47
- data: {"group_name": section_name},
47
+ data: {"group": section_name},
48
48
  success: function(data) {
49
49
  if (!data) {
50
50
  subnet_container.innerHTML += 'Cannot connect to External IPAM';
@@ -63,7 +63,7 @@
63
63
  var subnets = data;
64
64
 
65
65
  if (subnets['data'].length == 0) {
66
- subnet_container.innerHTML += "<div class='col-md-2'><strong>No Subnets</strong></div>"
66
+ subnet_container.innerHTML += "<div class='col-md-2'><strong>No Subnets found</strong></div>"
67
67
  }
68
68
  else {
69
69
  subnet_container.innerHTML += `
@@ -25,7 +25,7 @@ module ForemanIpam
25
25
  end
26
26
 
27
27
  # Add a new role called 'ExternalIpam' if it doesn't exist
28
- role 'ExternalIpam', [:view_foreman_ipam, :view_foreman_ipam_subnets, 'Role to allow for the viewing of Subnets and Sections from External IPAM']
28
+ role 'ExternalIpam', [:view_foreman_ipam, :view_foreman_ipam_subnets] # , 'Role to allow for the viewing of Subnets and Sections from External IPAM']
29
29
 
30
30
  # Add menu entry to Infrastructure
31
31
  menu :top_menu, :template,
@@ -1,3 +1,3 @@
1
1
  module ForemanIpam
2
- VERSION = '0.0.13'.freeze
2
+ VERSION = '0.0.14'.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.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-18 00:00:00.000000000 Z
11
+ date: 2020-02-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Plugin for IPAM integration with various IPAM providers
14
14
  email: