-
Notifications
You must be signed in to change notification settings - Fork 12
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
Operational status support for DNS and NTP #510
Comments
There is some support for DNS status, at least CLI "show dns" command shows current DNS servers assigned via DHCP. First setting DNS via DHCP.
Then adding a static DNS server. It used, but not reflected by "show dns".
|
Before we add proper operational support for DNS and NTP, we can at least improve on the built-in CLI commands. Issue #510 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Before we add proper operational support for DNS and NTP, we can at least improve on the built-in CLI commands. Issue #510 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Before we add proper operational support for DNS and NTP, we can at least improve on the built-in CLI commands. Issue #510 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Before we add proper operational support for DNS and NTP, we can at least improve on the built-in CLI commands. Issue #510 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Before we add proper operational support for DNS and NTP, we can at least improve on the built-in CLI commands. Issue #510 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Support for showing statically configured DNS servers has been fixed in main since 685b04d. |
Proposed YANG extension of ietf-system:system-state container dns-resolver {
description "List of active DNS servers";
config false;
container options {
description "Resolver options.";
leaf timeout {
description "Number of seconds before resolves tries another server.";
type uint8;
units "seconds";
}
leaf attempts {
description "Number of times the resolver reties before giving up.";
type uint8;
}
}
list server {
key "address";
leaf address {
description "IP address of DNS server";
type inet:ip-address;
}
leaf origin {
description "How DNS server was acquired";
type enumeration {
enum static {
description "Statically configured";
}
enum dhcp {
description "Dynamically acquired via DHCP";
}
}
}
leaf interface {
type if:interface-ref;
description "Interface DNS server was learned from, if DHCP";
}
}
container statistics {
description "DNS resolver statistics";
leaf cache-size {
description "Current number of entries in DNS cache";
type yang:counter32;
}
leaf cache-hits {
description "Number of successful cache lookups";
type yang:counter64;
}
leaf cache-misses {
description "Number of failed cache lookups";
type yang:counter64;
}
}
} Tree view: +--ro system-state +--ro platform | +--ro os-name? string | +--ro os-release? string | +--ro os-version? string | +--ro machine? string +--ro clock | +--ro current-datetime? yang:date-and-time | +--ro boot-datetime? yang:date-and-time +--ro infix-sys:ntp | +--ro infix-sys:sources | +--ro infix-sys:source* [address] | +--ro infix-sys:address inet:ip-address | +--ro infix-sys:mode? source-mode | +--ro infix-sys:state? source-state | +--ro infix-sys:stratum? uint8 | +--ro infix-sys:poll? uint8 +--ro infix-sys:dns-resolver | +--ro infix-sys:options | | +--ro infix-sys:timeout? uint8 | | +--ro infix-sys:attempts? uint8 | +--ro infix-sys:server* [address] | | +--ro infix-sys:address inet:ip-address | | +--ro infix-sys:origin? enumeration | | +--ro infix-sys:interface? if:interface-ref | +--ro infix-sys:statistics | +--ro infix-sys:cache-size? yang:counter32 | +--ro infix-sys:cache-hits? yang:counter64 | +--ro infix-sys:cache-misses? yang:counter64 |
Example status output: "infix-system:dns-resolver": { "options": { "timeout": 3, "attempts": 5 }, "search": [ "example.com", "foo.com" ], "server": [ { "address": "1.2.3.4", "origin": "static" }, { "address": "192.168.2.1", "origin": "dhcp", "interface": "e5" } ] } Fixes #510 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Example status output: "infix-system:dns-resolver": { "options": { "timeout": 3, "attempts": 5 }, "search": [ "example.com", "foo.com" ], "server": [ { "address": "1.2.3.4", "origin": "static" }, { "address": "192.168.2.1", "origin": "dhcp", "interface": "e5" } ] } Fixes #510 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Example status output: "infix-system:dns-resolver": { "options": { "timeout": 3, "attempts": 5 }, "search": [ "example.com", "foo.com" ], "server": [ { "address": "1.2.3.4", "origin": "static" }, { "address": "192.168.2.1", "origin": "dhcp", "interface": "e5" } ] } Fixes #510 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Example status output: "infix-system:dns-resolver": { "options": { "timeout": 3, "attempts": 5 }, "search": [ "example.com", "foo.com" ], "server": [ { "address": "1.2.3.4", "origin": "static" }, { "address": "192.168.2.1", "origin": "dhcp", "interface": "e5" } ] } Fixes #510 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Example status output: "infix-system:dns-resolver": { "options": { "timeout": 3, "attempts": 5 }, "search": [ "example.com", "foo.com" ], "server": [ { "address": "1.2.3.4", "origin": "static" }, { "address": "192.168.2.1", "origin": "dhcp", "interface": "e5" } ] } Fixes #510 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Example status output: "infix-system:dns-resolver": { "options": { "timeout": 3, "attempts": 5 }, "search": [ "example.com", "foo.com" ], "server": [ { "address": "1.2.3.4", "origin": "static" }, { "address": "192.168.2.1", "origin": "dhcp", "interface": "e5" } ] } Fixes #510 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Example status output: "infix-system:dns-resolver": { "options": { "timeout": 3, "attempts": 5 }, "search": [ "example.com", "foo.com" ], "server": [ { "address": "1.2.3.4", "origin": "static" }, { "address": "192.168.2.1", "origin": "dhcp", "interface": "e5" } ] } Fixes #510 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Example status output: "infix-system:dns-resolver": { "options": { "timeout": 3, "attempts": 5 }, "search": [ "example.com", "foo.com" ], "server": [ { "address": "1.2.3.4", "origin": "static" }, { "address": "192.168.2.1", "origin": "dhcp", "interface": "e5" } ] } Fixes #510 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Example status output: "infix-system:dns-resolver": { "options": { "timeout": 3, "attempts": 5 }, "search": [ "example.com", "foo.com" ], "server": [ { "address": "1.2.3.4", "origin": "static" }, { "address": "192.168.2.1", "origin": "dhcp", "interface": "e5" } ] } Fixes #510 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Example status output: "infix-system:dns-resolver": { "options": { "timeout": 3, "attempts": 5 }, "search": [ "example.com", "foo.com" ], "server": [ { "address": "1.2.3.4", "origin": "static" }, { "address": "192.168.2.1", "origin": "dhcp", "interface": "e5" } ] } Fixes #510 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Example status output: "infix-system:dns-resolver": { "options": { "timeout": 3, "attempts": 5 }, "search": [ "example.com", "foo.com" ], "server": [ { "address": "1.2.3.4", "origin": "static" }, { "address": "192.168.2.1", "origin": "dhcp", "interface": "e5" } ] } Fixes #510 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
See comments to #249, regarding lacking operational status for DNS, NTP as well as regression tests
As part of the task, please explore/propose/sync what operational data is available and relevant.
For NTP there is likely a lot of info.
For DNS I suppose there is not so much. If DHCP is used to acquire DNS there is at least some dynamic data.
Consider to include domain "search" setting as part of this task. Alternatively, put that in a separate task as it has lower priority.
The text was updated successfully, but these errors were encountered: