foreman_dhcp_browser 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 +4 -4
- data/app/models/dhcp_entries.rb +2 -2
- data/app/models/foreman_dhcp_browser/concerns/net_record_extension.rb +1 -1
- data/app/overrides/add_link_to_dhcp_entries.rb +3 -3
- data/app/views/dhcp/edit.html.erb +1 -1
- data/app/views/dhcp/index.html.erb +2 -2
- data/app/views/dhcp/new.html.erb +1 -1
- data/lib/foreman_dhcp_browser.rb +1 -1
- data/lib/foreman_dhcp_browser/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b095b8d8898cdd086d2d6d0d7c0ae14bc256d250
|
4
|
+
data.tar.gz: f400cea5c4f428b74133ef5ed4b42885c84a7c49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7df3af03ecee31cf1c8c96759061ea45db850190f11b6aabb728fa23f5441d8c7efd113a3d4d6c363e54eff164b708451129b6a6c7a7ab851797cea830a0230
|
7
|
+
data.tar.gz: b535a68d44b34b13896c68dbee28653d54e48b7fd465566689ef9838de9f4de3ce77883b4eb6d793205e2f1fad64f87c04143cb965081e72db3c15c2cfca4b54
|
data/app/models/dhcp_entries.rb
CHANGED
@@ -2,7 +2,7 @@ class DhcpEntries
|
|
2
2
|
delegate :dhcp_proxy, :to => :subnet
|
3
3
|
alias_attribute :proxy, :dhcp_proxy
|
4
4
|
|
5
|
-
def initialize
|
5
|
+
def initialize(opts = {})
|
6
6
|
@subnet = opts[:subnet]
|
7
7
|
end
|
8
8
|
|
@@ -22,7 +22,7 @@ class DhcpEntries
|
|
22
22
|
all['leases']
|
23
23
|
end
|
24
24
|
|
25
|
-
def find
|
25
|
+
def find(mac)
|
26
26
|
proxy.record(subnet.network, mac)
|
27
27
|
end
|
28
28
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
Deface::Override.new(:virtual_path =>
|
2
|
-
:name =>
|
3
|
-
:insert_top =>
|
1
|
+
Deface::Override.new(:virtual_path => 'subnets/index',
|
2
|
+
:name => 'add_subnets_dhcp',
|
3
|
+
:insert_top => 'td:last',
|
4
4
|
:text => "<%= link_to 'DHCP',subnet_dhcp_index_path(subnet), :class => 'btn btn-default btn-sm', :disabled => !subnet.dhcp? %>")
|
@@ -1,2 +1,2 @@
|
|
1
|
-
<% title _(
|
1
|
+
<% title _('Edit DHCP Record') %>
|
2
2
|
<%= render :partial => 'form' %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% title "DHCP Reservations for #{@subnet}" %>
|
2
|
-
<% title_actions button_group(link_to_if_authorized _(
|
2
|
+
<% title_actions button_group(link_to_if_authorized _('New DHCP Record'), hash_for_new_subnet_dhcp_path(params[:subnet_id])) %>
|
3
3
|
<table class="table table-bordered table-striped table-condensed" data-table='inline'>
|
4
4
|
<thead>
|
5
5
|
<th>Name</th>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<%= action_buttons(
|
18
18
|
#TODO display_link_if_authorized(_("Edit"), hash_for_edit_subnet_dhcp_path(:id => entry.mac, :subnet_id => params[:subnet_id])),
|
19
19
|
display_link_if_authorized(_('Details'), hash_for_subnet_dhcp_path(:id => entry.mac, :subnet_id => params[:subnet_id])),
|
20
|
-
display_delete_if_authorized(hash_for_subnet_dhcp_path(:id => entry.mac, :subnet_id => params[:subnet_id]), :confirm => _(
|
20
|
+
display_delete_if_authorized(hash_for_subnet_dhcp_path(:id => entry.mac, :subnet_id => params[:subnet_id]), :confirm => _('Delete %s?') % entry, :action => :destroy)) %>
|
21
21
|
</td>
|
22
22
|
</tr>
|
23
23
|
<% end -%>
|
data/app/views/dhcp/new.html.erb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
<% title _(
|
1
|
+
<% title _('New DHCP Record') %>
|
2
2
|
<%= render :partial => 'form' %>
|
data/lib/foreman_dhcp_browser.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_dhcp_browser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ohad Levy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deface
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "<"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "<"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
description: Plugin for Foreman to browse and add/edit/delete DHCP leases independent
|
28
28
|
of Foreman's host creation
|
29
29
|
email: ohadlevy@gmail.com
|