DNS: Improve field descriptions for SRV records

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Petr Spacek 2016-10-04 17:18:05 +02:00 committed by Martin Basti
parent f363dfbeed
commit bf96b80200
2 changed files with 9 additions and 5 deletions

View File

@ -1180,10 +1180,10 @@ IPA.dns.get_record_metadata = function() {
{
name: 'srvrecord',
attributes: [
'srv_part_priority',
'srv_part_weight',
'srv_part_port',
'srv_part_target'
'srv_part_priority',
'srv_part_weight',
'srv_part_port',
'srv_part_target'
],
adder_attributes: [],
columns: ['srv_part_priority', 'srv_part_weight', 'srv_part_port',

View File

@ -1329,12 +1329,16 @@ class SRVRecord(DNSRecord):
rfc = 2782
parts = (
Int('priority',
label=_('Priority'),
label=_('Priority (order)'),
doc=_('Lower number means higher priority. Clients will attempt '
'to contact the server with the lowest-numbered priority '
'they can reach.'),
minvalue=0,
maxvalue=65535,
),
Int('weight',
label=_('Weight'),
doc=_('Relative weight for entries with the same priority.'),
minvalue=0,
maxvalue=65535,
),