From 8eb16cf45f6d45f57e36b986a991c09a29c5d517 Mon Sep 17 00:00:00 2001 From: "jm9632@student.uni-lj.si" Date: Mon, 15 Dec 2014 23:52:15 +0000 Subject: task_check delno git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@90 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/tasks/openvpn_simple_smb/task.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'kpov_judge/tasks/openvpn_simple_smb') diff --git a/kpov_judge/tasks/openvpn_simple_smb/task.py b/kpov_judge/tasks/openvpn_simple_smb/task.py index 86fba69..c52c945 100644 --- a/kpov_judge/tasks/openvpn_simple_smb/task.py +++ b/kpov_judge/tasks/openvpn_simple_smb/task.py @@ -349,6 +349,12 @@ def task_check(results, params): if results['NM_nslookup'].find('Server:\t\t{0}\r'.format(params['DNS_NM'])) > -1: score += 3 + if results['SimpleArbiter_VPN_is_set_up'] == 1: + score += 3 + if results['SimpleArbiter_VPN_is_running'] == 1: + score +=3 + #zal si se nisem prišla na jasno s pingi + #if results['SimpleArbiter_ping_C1'] .find(Server:\t\t{0}\r'.format(params[]) if results['static_nslookup'].find('Server:\t\t{0}\r'.format(params['DNS_static'])) > -1: score += 3 if re.search(r'eth0 +802-.*connected', results['NM_nmcli']): -- cgit v1.2.1