Unfortunately there is some configuration involved. The way to do it is to set multiple streams in Yamcs, under streamConfig:
streamConfig:
tc:
- name: tc_node1
processor: realtime
tcPatterns: ["/XYZ/.*"]
- name: tc_node2
processor: realtime
tcPatterns: ["/ABC/.*"]
This will cause the commands that are in the subsystem /XYZ to go to stream tc_node1 and the commands that are in the subsystem /ABC to go into the stream tc_node2. You can also choose the stream when you send the command, it should be in the extra options.
Then you have to configure the ygw link to forward each stream to its corresponding node. Something like this:
dataLinks:
-name: ygw
class: org.yamcs.ygw.YgwLink ....
nodes:
node1:
tcStream: tc_node1
node2:
tcStream: tc_node2
The "node1" and "node2" in the ygw link config have to match the names of the node as they are registered in the Yamcs Gateway.
The node ids are only used in the communication protocol, you cannot use them in the config.
We should simplify all this config in the future but for the moment this is what we have....
nicolae