From 7ff5190fcd1d2d253f001603e57943c585ee32e0 Mon Sep 17 00:00:00 2001 From: Lucia Guevgeozian Odizzio Date: Fri, 21 Mar 2014 14:37:30 +0100 Subject: [PATCH] Removing old example ple sfa --- examples/planetlab/sfa.py | 53 --------------------------------------- 1 file changed, 53 deletions(-) delete mode 100755 examples/planetlab/sfa.py diff --git a/examples/planetlab/sfa.py b/examples/planetlab/sfa.py deleted file mode 100755 index c5b393e1..00000000 --- a/examples/planetlab/sfa.py +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/env python -# -# NEPI, a framework to manage network experiments -# Copyright (C) 2013 INRIA -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# -# Author: Lucia Guevgeozian - -from nepi.execution.ec import ExperimentController -import os - -# Create the EC -exp_id = "sfa_test" -ec = ExperimentController(exp_id) - -username = os.environ.get('SFA_SLICE') -sfauser = os.environ.get('SFA_USER') -sfaPrivateKey = os.environ.get('SFA_PK') - -# server -node1 = ec.register_resource("PlanetlabSfaNode") -ec.set(node1, "hostname", 'planetlab-4.imperial.ac.uk') -ec.set(node1, "username", username) -ec.set(node1, "sfauser", sfauser) -ec.set(node1, "sfaPrivateKey", sfaPrivateKey) -ec.set(node1, "cleanHome", True) -ec.set(node1, "cleanProcesses", True) - -app1 = ec.register_resource("LinuxApplication") -command = "ping -c5 google.com" -ec.set(app1, "command", command) -ec.register_connection(app1, node1) - -# Deploy -ec.deploy() - -ec.wait_finished([app1]) - -ec.shutdown() - -# End -- 2.43.0