From aeda3f389e6da5ef81d2a66c2647a031a5203189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Thu, 25 Oct 2018 10:03:03 +0200 Subject: [PATCH 1/2] Display a per-view list of zones in the web interface The XSL stylesheet used by the web interface does not currently include any element which would cause a list of zones configured in each view to be displayed, making the "Zones" section of the web interface empty unless some zone has been configured with "zone-statistics full;" and queried. Since this can be confusing, modify the XSL stylesheet so that a list of zones configured in each view is displayed in the web interface. --- bin/named/bind9.xsl | 48 +++++++++++++++++++++++++++++++++++++++++++ bin/named/bind9.xsl.h | 48 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) diff --git a/bin/named/bind9.xsl b/bin/named/bind9.xsl index 4f3778ef59..0fe5750248 100644 --- a/bin/named/bind9.xsl +++ b/bin/named/bind9.xsl @@ -198,6 +198,25 @@ background-color: #99ddff; } + table.zones { + border: 1px solid grey; + width: 500px; + } + table.zones th { + text-align: center; + border: 1px solid grey; + } + table.zones td { + text-align: center; + font-family: monospace; + } + table.zones td:nth-child(1) { + text-align: right; + } + table.zones td:nth-child(4) { + text-align: right; + } + .totals { background-color: rgb(1,169,206); color: #ffffff; @@ -705,6 +724,35 @@
+ + +

Zones for View

+ + + + + + + + + + + + + + + +
NameClassTypeSerial
+ + + + + + + +
+
+

Received QTYPES per view/zone

diff --git a/bin/named/bind9.xsl.h b/bin/named/bind9.xsl.h index 50fd2ba3f2..8339fd3838 100644 --- a/bin/named/bind9.xsl.h +++ b/bin/named/bind9.xsl.h @@ -203,6 +203,25 @@ static char xslmsg[] = " background-color: #99ddff;\n" " }\n" "\n" + " table.zones {\n" + " border: 1px solid grey;\n" + " width: 500px;\n" + " }\n" + " table.zones th {\n" + " text-align: center;\n" + " border: 1px solid grey;\n" + " }\n" + " table.zones td {\n" + " text-align: center;\n" + " font-family: monospace;\n" + " }\n" + " table.zones td:nth-child(1) {\n" + " text-align: right;\n" + " }\n" + " table.zones td:nth-child(4) {\n" + " text-align: right;\n" + " }\n" + "\n" " .totals {\n" " background-color: rgb(1,169,206);\n" " color: #ffffff;\n" @@ -710,6 +729,35 @@ static char xslmsg[] = " \n" "
\n" "
\n" + " \n" + " \n" + "

Zones for View

\n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + "
NameClassTypeSerial
\n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + "
\n" + "
\n" + "
\n" " \n" "

Received QTYPES per view/zone

\n" " \n" From d9c4068cc37608be1a3092634e7f564c3660d91f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Thu, 25 Oct 2018 10:03:03 +0200 Subject: [PATCH 2/2] Add CHANGES entry 5059. [bug] Display a per-view list of zones in the web interface. [GL #427] --- CHANGES | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 6847f78e24..379eee9398 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +5059. [bug] Display a per-view list of zones in the web interface. + [GL #427] + 5058. [func] Replace old message digest and hmac APIs with more generic isc_md and isc_hmac APIs, and convert their respective tests to cmocka. [GL #305] @@ -208,7 +211,7 @@ 5000. [bug] named_server_servestale() could leave the server in exclusive mode if an error occured. [GL #441] -4999. [cleanup] Remove custom printf implementaion in lib/isc/print.c. +4999. [cleanup] Remove custom printf implementation in lib/isc/print.c. [GL #261] 4998. [test] Make resolver and cacheclean tests more civilized.