Enabling the avahi service.
Regsitering the following services with avahi.
obmc-console,ssh,sftp(dropbear),obmc-rest
Fixes openbmc/openbmc#548
Fixes openbmc/openbmc#549
Change-Id: I20c31e9e8dfa6d52575bc3c1f55ac62eef82ec13
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
diff --git a/meta-phosphor/common/recipes-phosphor/console/obmc-console.bb b/meta-phosphor/common/recipes-phosphor/console/obmc-console.bb
index 36c7403..f6c1db2 100644
--- a/meta-phosphor/common/recipes-phosphor/console/obmc-console.bb
+++ b/meta-phosphor/common/recipes-phosphor/console/obmc-console.bb
@@ -6,6 +6,7 @@
inherit obmc-phosphor-license
inherit obmc-phosphor-systemd
inherit autotools
+inherit obmc-phosphor-discovery-service
TARGET_CFLAGS += "-fpic -O2"
@@ -16,6 +17,8 @@
SRCREV = "44580de4e2170c8ee06dbf401315d3acfcf52b22"
+REGISTERED_SERVICES_${PN} += "obmc_console:tcp:2200"
+
SYSTEMD_SERVICE_${PN} = " \
${PN}.service \
${PN}-ssh.socket \
diff --git a/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-rest.bb b/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-rest.bb
index a8f82cb..8df4ca0 100644
--- a/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-rest.bb
+++ b/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-rest.bb
@@ -8,6 +8,7 @@
inherit allarch
inherit obmc-phosphor-systemd
inherit setuptools
+inherit obmc-phosphor-discovery-service
RRECOMMENDS_${PN} += "virtual-obmc-wsgihost"
@@ -29,3 +30,4 @@
SYSTEMD_SERVICE_${PN} = ""
SYSTEMD_OVERRIDE_${PN} += "rest-dbus.conf:obmc-mapper.target.d/rest-dbus.conf"
SYSTEMD_ENVIRONMENT_FILE_${PN} += "obmc/wsgi_app"
+REGISTERED_SERVICES_${PN} += "phosphor_rest:tcp:443"