Commit 18486aa6 authored by Jonathon Duerig's avatar Jonathon Duerig

Backend support for improved newnode handling.

Includes support for adding new nodes/interfaces/interface-types/wires.
Also includes sample xml files.
parent 825a548a
<?xml version="1.0" encoding="UTF-8"?>
<newnode>
<attribute name="table">
<value>interface_type</value>
</attribute>
<attribute name="command">
<value>commit</value>
</attribute>
<attribute name="id">
<value>7</value>
</attribute>
<attribute name="type">
<value>t_type</value>
</attribute>
<attribute name="max_speed">
<value>600</value>
</attribute>
<attribute name="full_duplex">
<value>0</value>
</attribute>
<attribute name="manufacturer">
<value>t_manufacturer</value>
</attribute>
<attribute name="model">
<value>t_model</value>
</attribute>
<attribute name="ports">
<value>5</value>
</attribute>
<attribute name="connector">
<value>t_connector</value>
</attribute>
</newnode>
<?xml version="1.0" encoding="UTF-8"?>
<newnode>
<attribute name="table">
<value>interface</value>
</attribute>
<attribute name="command">
<value>list</value>
</attribute>
<attribute name="id">
<value>1</value>
</attribute>
<attribute name="node_id">
<value>5</value>
</attribute>
<attribute name="card">
<value>0</value>
</attribute>
<attribute name="port">
<value>1</value>
</attribute>
<attribute name="mac">
<value>000000000000</value>
</attribute>
<attribute name="type">
<value>t_type</value>
</attribute>
</newnode>
<?xml version="1.0" encoding="UTF-8"?>
<newnode>
<attribute name="table">
<value>node</value>
</attribute>
<attribute name="command">
<value>add</value>
</attribute>
<attribute name="id">
<value>6</value>
</attribute>
<attribute name="node_id">
<value>t_node_id</value>
</attribute>
<attribute name="type">
<value>d710</value>
</attribute>
<attribute name="IP">
<value>5.5.5.5</value>
</attribute>
<attribute name="identifier">
<value>t_identifier</value>
</attribute>
</newnode>
<?xml version="1.0" encoding="UTF-8"?>
<newnode>
<attribute name="table">
<value>wire</value>
</attribute>
<attribute name="command">
<value>add</value>
</attribute>
<attribute name="id">
<value>4</value>
</attribute>
<attribute name="cable">
<value>6</value>
</attribute>
<attribute name="len">
<value>5</value>
</attribute>
<attribute name="type">
<value>Node</value>
</attribute>
<attribute name="node_id1">
<value>t_node_id1</value>
</attribute>
<attribute name="card1">
<value>1</value>
</attribute>
<attribute name="port1">
<value>3</value>
</attribute>
<attribute name="node_id2">
<value>t_node_id2</value>
</attribute>
<attribute name="card2">
<value>2</value>
</attribute>
<attribute name="port2">
<value>4</value>
</attribute>
</newnode>
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment