Manages network announcement(mDNS) and discovery (DNS-SD) by collecting information from fty-info agent, then publishing it through avahi-deamon
limitation: discovery is not yet managed
To build fty-mdns-sd project run:
sudo apt-get install fty-info
sudo apt-get install avahi-daemon
sudo apt-get install libavahi-client-dev
./autogen.sh [clean]
./configure
make
make check # to run self-test
To run fty-mdns-sd project:
- from within the source tree, run:
./src/fty-mdns-sd
For the other options available, refer to the manual page of fty-mdns-sd
- from an installed base, using systemd, run:
systemctl start fty-info
systemctl start avahi-daemon
systemctl start fty-mdns-sd
The default configuration values are in fty-mdns-sd.cfg file.
-
section server:
- verbose - sets verbosity of the agent
-
section fty-info
- name - sets name of fty-info agent
- command - sets command sent to fty-info agent
-
section malamute: standard directives
fty-mdns-sd has 1 actor:
- fty-mdns-sd-server: main actor
Agent doesn't publish any metrics.
Agent doesn't publish any alerts.
Agent doesn't accept any mailbox requests.
On startup, agent send INFO request to fty-info agent, and sets default service definition and TXT properties via avahi.
In addition to that, agent is subscribed to ANNOUNCE stream (special stream where up-to-date INFO messages are periodically published).
On each INFO message, agent updates service definition and TXT properties, and publishes them to mDNS-SD via avahi.