Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Wiki / Rspecrequestlinkexample

Rspecrequestlinkexample

RSpec V2 Example

Example of an RSpec request for two nodes with a VLAN link between them.

You may want a link between several nodes on the same Component Manager. You can specify them with the link element. Currently, the only way to connect nodes on different Component Managers is via GRE tunnels (see RSpecRequestTunnelExample).

RSpec V2 Example

<?xml version="1.0" encoding="UTF-8"?>
<rspec xmlns="http://www.protogeni.net/resources/rspec/2"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.protogeni.net/resources/rspec/2
                           http://www.protogeni.net/resources/rspec/2/request.xsd"
       type="request" >
  <node client_id="left"
        exclusive="true">
    <sliver_type name="raw-pc" />
    <interface client_id="left:if0" />
  </node>
  <node client_id="right"
        exclusive="true">
    <sliver_type name="raw-pc" />
    <interface client_id="right:if0" />
  </node>
  <link client_id="center">
    <interface_ref client_id="left:if0" />
    <interface_ref client_id="right:if0" />
  </link>
</rspec>

RSpec V0.1 Example (Deprecated)

<?xml version="1.0" encoding="UTF-8"?>
<rspec xmlns="http://www.protogeni.net/resources/rspec/0.1"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.protogeni.net/resources/rspec/0.1
                           http://www.protogeni.net/resources/rspec/0.1/request.xsd"
       type="request" >
  <node virtual_id="left"
        virtualization_type="emulab-vnode"
        exclusive="1">
    <node_type type_name="pc" type_slots="1"/>
    <interface virtual_id="if0"/>
  </node>
  <node virtual_id="right"
        virtualization_type="emulab-vnode"
        exclusive="1">
    <node_type type_name="pc" type_slots="1"/>
    <interface virtual_id="if0"/>
  </node>
  <link virtual_id="center">
    <interface_ref virtual_node_id="left"
                   virtual_interface_id="if0" />
    <interface_ref virtual_node_id="right" 
                   virtual_interface_id="if0" />
  </link>
</rspec>