From 6a3b2ea76cbcae063b7f70e3965f14b1ffa2772a Mon Sep 17 00:00:00 2001 From: "gasperfele@fri1.uni-lj.si" Date: Fri, 7 Oct 2016 20:33:16 +0000 Subject: Fixed the computers for task public_ip_ssh git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@359 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/tasks/public_ip_ssh/task.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'kpov_judge/tasks/public_ip_ssh') diff --git a/kpov_judge/tasks/public_ip_ssh/task.py b/kpov_judge/tasks/public_ip_ssh/task.py index 114d1b3..9640b27 100644 --- a/kpov_judge/tasks/public_ip_ssh/task.py +++ b/kpov_judge/tasks/public_ip_ssh/task.py @@ -17,10 +17,18 @@ uporabnik s svojim geslom lahko na A prijavil z Interneta. computers = { 'SimpleArbiter': { 'disks':[ - { 'name': 'Test' }] + { 'name': 'simpleArbiter' }], + 'network_interfaces':[{'network':'net1'}], + }, + 'A': { + 'disks':[], + 'network_interfaces':[{'network':'net2'}], } + } +networks = { 'net1': {'public': True}, 'net2': {'public': True} } + params_meta = { 'peer_ip': {'descriptions': {'si': 'Naslov ssh strežnika'}, 'w': True, 'public':True, 'type': 'IP', 'generated': False}, 'peer_user': {'descriptions': {'si': 'ime uporabnika'}, 'w': False, 'public': True, 'type': 'username', 'generated': True}, @@ -47,5 +55,5 @@ def task_check(results, params): return 10, [] def prepare_disks(templates, task_params, global_params): - write_default_config(templates['Test'], global_params) + write_default_config(templates['simpleArbiter'], global_params) # print d1.ls('/') -- cgit v1.2.1