tools/cluster_sim_uml/archive/scripts/40opensaf.rc |  1 +
 tools/cluster_sim_uml/build_uml                    |  5 +++++
 2 files changed, 6 insertions(+), 0 deletions(-)


Add support for the TCP transport in the UML environment. Select TIPC
transport when OpenSAF was built with TIPC enabled.

diff --git a/tools/cluster_sim_uml/archive/scripts/40opensaf.rc 
b/tools/cluster_sim_uml/archive/scripts/40opensaf.rc
--- a/tools/cluster_sim_uml/archive/scripts/40opensaf.rc
+++ b/tools/cluster_sim_uml/archive/scripts/40opensaf.rc
@@ -60,6 +60,7 @@ fi
 rm -f /etc/opensaf/slot_id
 rm -f /etc/opensaf/node_id
 echo $hostnumber > /etc/opensaf/slot_id 
+sed -i "s/DTM_NODE_IP=.*/DTM_NODE_IP=192.168.0.$hostnumber/" 
/etc/opensaf/dtmd.conf
 
 # Generate node unique node_name & node_id files
 rm -f /etc/opensaf/node_name /etc/opensaf/node_id
diff --git a/tools/cluster_sim_uml/build_uml b/tools/cluster_sim_uml/build_uml
--- a/tools/cluster_sim_uml/build_uml
+++ b/tools/cluster_sim_uml/build_uml
@@ -191,6 +191,11 @@ cmd_create_rootfs()
     sed -i '/export\ OPENSAF_GROUP/d' etc/opensaf/nid.conf
     sed -i '/export\ OPENSAF_USER/d' etc/opensaf/nid.conf
 
+    # Select TIPC transport if OpenSAF was configured with it.
+    if grep -q "define ENABLE_TIPC_TRANSPORT 1" ../../../config.h; then
+       sed -i 's/MDS_TRANSPORT=TCP/MDS_TRANSPORT=TIPC/g' etc/opensaf/nid.conf
+    fi
+
     # The var directory structure is setup from within each UML
     rm -rf var/*
 

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to