Use "template" to name what we use to create new nodes.

This commit is contained in:
grossmj committed 2018-11-28 16:12:58 +07:00
1 parent 21c0a35f77
commit d7c2e16c21
262 files changed
+16588 -16863

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
{
"drawing_id": "a1de5575-9937-4d17-93f4-1507af86d1b5",
"project_id": "d0efc2df-129c-4efe-8f95-1ab59d87d2f0",
"drawing_id": "fe62116a-2dfd-434a-b1b4-5118124e887a",
"project_id": "d0ff321c-2af4-49f7-b544-a5363e3e0b3f",
"rotation": 0,
"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>",
"x": 10,
+2 -2
View File
@@ -1,6 +1,6 @@
{
"drawing_id": "01160a0a-5fa2-41fc-a4b3-6a38c8e7c571",
"project_id": "6a27e9d1-dc12-4217-a534-7afd47b41bba",
"drawing_id": "57b22f3b-7291-4e88-ac6e-0fc1c2964729",
"project_id": "1cfff31c-1f7d-44b4-b056-1520ea105bf2",
"rotation": 0,
"svg": "<svg></svg>",
"x": 0,
+2 -2
View File
@@ -1,6 +1,6 @@
{
"drawing_id": "0c6d425f-d689-4369-a244-ef20db58c509",
"project_id": "e4f85f59-7858-45a3-aa43-f3795b46578b",
"drawing_id": "625928c4-5679-4ef0-8ebc-51c08b512a9c",
"project_id": "01229bb7-2cd2-48e3-b183-a50d082e7519",
"rotation": 0,
"x": 42,
"y": 20,
+4 -4
View File
@@ -10,7 +10,7 @@
10
]
},
"link_id": "e4ce29c1-33f8-434c-87ba-6aa85b2dd089",
"link_id": "f6347019-741f-4569-98e7-0f58f2225d9b",
"link_type": "ethernet",
"nodes": [
{
@@ -22,7 +22,7 @@
"x": -10,
"y": -10
},
"node_id": "6df6e46d-66d9-4856-bf59-6d603a8b9e64",
"node_id": "2688dd1a-6002-4ab5-b134-7a51794cef25",
"port_number": 3
},
{
@@ -34,10 +34,10 @@
"x": -10,
"y": -10
},
"node_id": "6d1f08eb-7197-4b4f-9024-819ff2114498",
"node_id": "09440c34-f5de-402e-b8b6-beda818ebef4",
"port_number": 4
}
],
"project_id": "f4e51aa4-8b8e-4166-a03d-4c4dcad6076e",
"project_id": "b82e9467-a4f0-4668-8ef4-49078d628aa2",
"suspend": false
}
+2 -2
View File
@@ -3,9 +3,9 @@
"capture_file_path": null,
"capturing": false,
"filters": {},
"link_id": "819ee27a-997d-4986-8e48-41a7520e297a",
"link_id": "a222f3c3-edd9-495c-b816-dfb6af4c97ca",
"link_type": "ethernet",
"nodes": [],
"project_id": "12b585a6-9440-43fd-a231-789faf5559d7",
"project_id": "29ed5cb5-479d-470c-a52b-dad6c8c22d54",
"suspend": false
}
+4 -4
View File
@@ -10,7 +10,7 @@
10
]
},
"link_id": "c939cbf3-c221-472c-84ce-4c4fc41801de",
"link_id": "51f5b5c4-4dab-4eae-9404-8dce721a74af",
"link_type": "ethernet",
"nodes": [
{
@@ -20,7 +20,7 @@
"x": 64,
"y": 0
},
"node_id": "047905b7-88ea-40c5-b3c5-917ef5952203",
"node_id": "6cd7e1e3-9a3d-4878-ab56-5d49c5d81195",
"port_number": 3
},
{
@@ -32,10 +32,10 @@
"x": -10,
"y": -10
},
"node_id": "52052251-cbea-4740-93d6-aa4f2f3f5784",
"node_id": "faa14279-e66d-480d-a09b-ec817cab1644",
"port_number": 4
}
],
"project_id": "4854a4b1-83bd-43c5-b556-532979f5e45f",
"project_id": "dd2b1f50-0008-46f7-9a41-6e5747a636cd",
"suspend": false
}
+10 -10
View File
@@ -1,24 +1,23 @@
{
"appliance_id": null,
"command_line": "",
"compute_id": "local",
"console": 5006,
"console": 5004,
"console_auto_start": false,
"console_host": "127.0.0.1",
"console_type": "telnet",
"custom_adapters": [],
"first_port_name": null,
"height": 59,
"height": 60,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "PC2",
"text": "PC1",
"x": 18,
"y": -25
},
"name": "PC2",
"node_directory": "/tmp/pytest-of-grossmj/pytest-48/test_load_project0/project-files/vpcs/748bcd89-624a-40eb-a8d3-1d2e85c99b51",
"node_id": "748bcd89-624a-40eb-a8d3-1d2e85c99b51",
"name": "PC1",
"node_directory": "/tmp/pytest-of-grossmj/pytest-4/test_load_project0/project-files/vpcs/64ba8408-afbf-4b66-9cdd-1fd854427478",
"node_id": "64ba8408-afbf-4b66-9cdd-1fd854427478",
"node_type": "vpcs",
"port_name_format": "Ethernet{0}",
"port_segment_size": 0,
@@ -38,8 +37,9 @@
"properties": {},
"status": "stopped",
"symbol": ":/symbols/computer.svg",
"width": 65,
"x": -71,
"y": -98,
"template_id": null,
"width": 60,
"x": -300,
"y": -118,
"z": 1
}
+6 -5
View File
@@ -2,11 +2,12 @@
"auto_close": true,
"auto_open": false,
"auto_start": false,
"filename": "test.gns3",
"grid_size": 0,
"name": "test",
"path": "/tmp/tmp65zk1q4u/projects/8e5574d9-d44a-488c-ba2e-b10b9ddf783a",
"project_id": "8e5574d9-d44a-488c-ba2e-b10b9ddf783a",
"drawing_grid_size": 25,
"filename": "Test.gns3",
"grid_size": 75,
"name": "Test",
"path": "/tmp/tmphs89e2e1/projects/337498d9-3f41-4482-b65e-f67220dff38a",
"project_id": "337498d9-3f41-4482-b65e-f67220dff38a",
"scene_height": 1000,
"scene_width": 2000,
"show_grid": false,
+3 -2
View File
@@ -2,10 +2,11 @@
"auto_close": true,
"auto_open": false,
"auto_start": false,
"drawing_grid_size": 25,
"filename": "test.gns3",
"grid_size": 0,
"grid_size": 75,
"name": "test2",
"path": "/tmp/tmpghp7ta5o/projects/10010203-0405-0607-0809-0a0b0c0d0e0f",
"path": "/tmp/tmpzpa4l8l1/projects/10010203-0405-0607-0809-0a0b0c0d0e0f",
"project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f",
"scene_height": 1000,
"scene_width": 2000,
@@ -1,6 +1,6 @@
{
"created_at": 1542703723,
"created_at": 1543331386,
"name": "test",
"project_id": "d9370dc6-7c83-4c84-bf99-9d85c3f4f95d",
"snapshot_id": "ea494cf7-a3cb-4a1e-89db-ab3f3a298f22"
"project_id": "1dda7fdd-2de7-40b9-800d-98ef41587580",
"snapshot_id": "4f054b60-55cb-4be5-ab07-234abc08b474"
}
@@ -1,11 +1,9 @@
{
"appliance_id": "5c30e03e-f47d-4f29-b42a-1cfa03f4a9b0",
"appliance_type": "ethernet_hub",
"builtin": false,
"category": "switch",
"compute_id": "local",
"default_name_format": "Hub{0}",
"name": "Ethernet hub appliance",
"name": "Ethernet hub template",
"ports_mapping": [
{
"name": "Ethernet0",
@@ -40,5 +38,7 @@
"port_number": 7
}
],
"symbol": ":/symbols/hub.svg"
"symbol": ":/symbols/hub.svg",
"template_id": "1d5944b4-09a8-4efd-a2dc-cc8a42ea8f20",
"template_type": "ethernet_hub"
}
@@ -1,6 +1,4 @@
{
"appliance_id": "513c90b1-3a13-40bc-8b78-ecf89ec7ed49",
"appliance_type": "vpcs",
"base_script_file": "vpcs_base_config.txt",
"builtin": false,
"category": "guest",
@@ -9,5 +7,7 @@
"console_type": "telnet",
"default_name_format": "PC{0}",
"name": "VPCS_TEST",
"symbol": ":/symbols/vpcs_guest.svg"
"symbol": ":/symbols/vpcs_guest.svg",
"template_id": "f25c50bb-c5fa-4194-b657-9246908d573e",
"template_type": "vpcs"
}
@@ -1,6 +1,4 @@
{
"appliance_id": "0f861b63-ccad-435d-88d1-354ad9f3d77a",
"appliance_type": "vpcs",
"base_script_file": "vpcs_base_config.txt",
"builtin": false,
"category": "guest",
@@ -9,5 +7,7 @@
"console_type": "telnet",
"default_name_format": "PC{0}",
"name": "VPCS_TEST_RENAMED",
"symbol": ":/symbols/vpcs_guest.svg"
"symbol": ":/symbols/vpcs_guest.svg",
"template_id": "31263538-d569-4138-89f8-68612d04edb8",
"template_type": "vpcs"
}