Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow Netdot to start with a selected domain for new A/AAAA records #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions etc/Default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,13 @@ DEFAULT_HINFO_OS_VALUES => {
'LINUX' => 'Linux',
},

# When creating a new DNS A/AAAA record, the list of available domains (zones)
# are populated in a dropdown. The "closest" possible forward zone is
# determined and placed at the top of the list of zones. This option instructs
# Netdot to automatically select that domain for creating the A/AAAA record.
# NOTE: the user may still select a different domain. This option only
# specifies whether a domain should be selected by default in the dropdown.
SELECT_DEFAULT_DOMAIN_FOR_NEW_ADDRESS_RECORD => 0,

# Netdot tries to automate the assignment of DNS names for each
# IP address associated with a Device Interface. We chose to
Expand Down
4 changes: 3 additions & 1 deletion htdocs/management/ip.html
Original file line number Diff line number Diff line change
Expand Up @@ -815,8 +815,10 @@
Name: <input type="text" name="new_a_name" value="">
<select name="new_a_zone">
<option value=""> - select - </option>
% my $i = 0;
% foreach my $zone ( @zone_list ){
<option value="<% $zone->id %>"><% $zone->get_label %></option>
<option value="<% $zone->id %>"<% ($i == 0 && Netdot->config->get("SELECT_DEFAULT_DOMAIN_FOR_NEW_ADDRESS_RECORD")) ? ' selected' : '' %>><% $zone->get_label %></option>
% $i++;
% }
</select>
<p><input type="button" name="cancel_button" value="cancel" onClick="history.go(-1);">
Expand Down