Difference between revisions of "Switch your model/image from TIPC to UDP"

(Created page with "== From Model == === Step 1 === - Using IDE open your model, upgrade your model, a xport configure file clTransport.xml will be generated in <your model>/config/clTransport.xml …")
 
(From Model)
Line 3: Line 3:
 
- Using IDE open your model, upgrade your model, a xport configure file clTransport.xml will be generated in <your model>/config/clTransport.xml
 
- Using IDE open your model, upgrade your model, a xport configure file clTransport.xml will be generated in <your model>/config/clTransport.xml
  
<syntaxhighlight lang="xml">
 
 
     <?xml version="1.0" encoding="UTF-8"?>
 
     <?xml version="1.0" encoding="UTF-8"?>
 
     <openClovisAsp\>
 
     <openClovisAsp\>
Line 29: Line 28:
 
       </version>
 
       </version>
 
     </openClovisAsp>
 
     </openClovisAsp>
</syntaxhighlight>
+
 
  
 
=== Step 2 ===
 
=== Step 2 ===
 
Edit content clTransport.xml with UDP default:
 
Edit content clTransport.xml with UDP default:
<syntaxhighlight lang="xml">
+
 
 
     <?xml version="1.0" encoding="UTF-8"?>
 
     <?xml version="1.0" encoding="UTF-8"?>
 
     <openClovisAsp>
 
     <openClovisAsp>
Line 53: Line 52:
 
       </version>
 
       </version>
 
     <openClovisAsp>
 
     <openClovisAsp>
</syntaxhighlight>
+
 
 
UDP use multicast to notification component arrival and departure.
 
UDP use multicast to notification component arrival and departure.
 +
 +
== Step 3 ==
 +
Add 2 env variables into <model_dir>/src/target.env:
 +
 +
export ASP_UDP_SUBNET=<IP Range>/Length
 +
export ASP_UDP_LINK_NAME=<your interface>
 +
 +
Example:
 +
 +
export ASP_UDP_SUBNET=192.168.57.0/24
 +
export ASP_UDP_LINK_NAME=eth0
  
 
== From Image ==
 
== From Image ==
 
Create a clTransport.xml like step 2 above and retarball your images.
 
Create a clTransport.xml like step 2 above and retarball your images.

Revision as of 06:54, 6 June 2012

Contents

From Model

Step 1

- Using IDE open your model, upgrade your model, a xport configure file clTransport.xml will be generated in <your model>/config/clTransport.xml

   <?xml version="1.0" encoding="UTF-8"?>
   <openClovisAsp\>
     <version v0="4.0.0">
       <ioc:BootConfig xmlns:ioc="ioc.ecore">
        <config>
          <default>TIPC</default>
        </config>
         <xports>
           <xport>
             <type>TIPC</type>
             <plugin>libClTIPC.so</plugin>
           </xport>
         </xports>
       </ioc:BootConfig>
     </version>
   </openClovisAsp>


Step 2

Edit content clTransport.xml with UDP default:

   <?xml version="1.0" encoding="UTF-8"?>
   <openClovisAsp>
     <version v0="4.0.0">
       <ioc:BootConfig xmlns:ioc="ioc.ecore">
         <xports>
           <xport>
             <type>UDP</type>
             <plugin>libClUDP.so</plugin>
           </xport>
         </xports>
         <multicast address="226.0.1.1" port="9595" />
         <heartbeat>
             <interval>3000</interval>
             <intervalLocal>3000</intervalLocal>
             <retries>5</retries>
         </heartbeat>
       </ioc:BootConfig>
     </version>
   <openClovisAsp>

UDP use multicast to notification component arrival and departure.

Step 3

Add 2 env variables into <model_dir>/src/target.env:

export ASP_UDP_SUBNET=<IP Range>/Length export ASP_UDP_LINK_NAME=<your interface>

Example:

export ASP_UDP_SUBNET=192.168.57.0/24 export ASP_UDP_LINK_NAME=eth0

From Image

Create a clTransport.xml like step 2 above and retarball your images.