ironic_inspector.pxe_filter.dnsmasq
Module¶ironic_inspector.pxe_filter.dnsmasq.
DnsmasqFilter
[source]¶Bases: ironic_inspector.pxe_filter.base.BaseFilter
The dnsmasq PXE filter driver.
A pxe filter driver implementation that controls access to dnsmasq through amending its configuration.
init_filter
(*args, **kwargs)[source]¶Performs an initial sync with ironic and starts dnsmasq.
The initial _sync() call reduces the chances dnsmasq might lose some inotify blacklist events by prefetching the blacklist before the dnsmasq is started.
Raises: | OSError, IOError. |
---|---|
Returns: | None. |
sync
(*args, **kwargs)[source]¶Sync dnsmasq configuration with current Ironic&Inspector state.
Polls all ironic ports. Those being inspected, the active ones, are whitelisted while the rest are blacklisted in the dnsmasq configuration.
Parameters: | ironic – an ironic client instance. |
---|---|
Raises: | OSError, IOError. |
Returns: | None. |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.