diff options
author | jm9632@student.uni-lj.si <jm9632@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2014-12-15 23:52:15 +0000 |
---|---|---|
committer | jm9632@student.uni-lj.si <jm9632@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2014-12-15 23:52:15 +0000 |
commit | 8eb16cf45f6d45f57e36b986a991c09a29c5d517 (patch) | |
tree | 2777b23672b63c3f3ebca02b998751fb548d230e /kpov_judge | |
parent | 866a70b8d806bad06817c5dae08e949d19e9b542 (diff) |
task_check delno
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@90 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge')
-rw-r--r-- | kpov_judge/tasks/openvpn_simple_smb/task.py | 6 |
1 files changed, 6 insertions, 0 deletions
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']): |