Configure DDS for CCS: describe property tweaks authored by Marcus Schilling's avatar Marcus Schilling
...@@ -1290,11 +1290,27 @@ import elt.pymal ...@@ -1290,11 +1290,27 @@ import elt.pymal
import ccs.defaults import ccs.defaults
uri = "dds.ps://TOPIC" uri = "dds.ps://TOPIC"
prp = ccs.defaults.GetDefaultMalPropertiesForCcs (uri) prp = ccs.defaults.GetDefaultMalPropertiesForCcs (uri) # (uri, app_name, cnd_ip)
mfa = elt.pymal.LoadMalForUri (uri, prp) mfa = elt.pymal.LoadMalForUri (uri, prp)
sub = mfa.getSubscriber (uri, .. sub = mfa.getSubscriber (uri, ..
``` ```
The standard DDS Qos are not appropriate for all environments.
Examples for useful tweaks of the properties:
i) to use Localhost_Only:
```plaintext
prp["dds.qos.profile.name.participant"] = "Localhost_Only"
```
ii) to use a certain network interface:
```plaintext
prp["dds.qos.participant.interfaceWhiteList"] = "lo"
```
iii) to use a custom profile file:
```plaintext
prp["dds.qos.profile.library"] = "/tmp/dds_profile.xml"
```
Find more documentation at https://gitlab.eso.org/ccs/ccs-defaults Find more documentation at https://gitlab.eso.org/ccs/ccs-defaults
and see an example application at https://gitlab.eso.org/cii/mal/icd-demo/-/blob/master/app/cpp/ps/subscriber/src/SubscriberDemo.cpp and see an example application at https://gitlab.eso.org/cii/mal/icd-demo/-/blob/master/app/cpp/ps/subscriber/src/SubscriberDemo.cpp
... ...
......