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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b72896f702365297c33aac7442d130618965c3f440d43f3f0b697b343aadda02
|
4
|
+
data.tar.gz: 3cbe788d2695551868cae5c6405df3ec20ebe7b3a5f01e8bb0d253e36b80f46e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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[:
|
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['
|
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(
|
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: {"
|
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 += `
|
data/lib/foreman_ipam/engine.rb
CHANGED
@@ -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,
|
data/lib/foreman_ipam/version.rb
CHANGED
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.
|
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-
|
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:
|