X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2Fnepi%2Fresources%2Flinux%2Fns3%2Fccn%2Fns3fibentrydceapplication.py;h=edb4222cc8c89eb612443e1750cebc3e5069d4d4;hb=58a2b493f8df1072a1faa653c8abb6a3f9ba21fa;hp=61378256635398183851a96ba2ebef59eb767d7f;hpb=96ce55552a850e2fc155710a80c8453e0f201783;p=nepi.git diff --git a/src/nepi/resources/linux/ns3/ccn/ns3fibentrydceapplication.py b/src/nepi/resources/linux/ns3/ccn/ns3fibentrydceapplication.py index 61378256..edb4222c 100644 --- a/src/nepi/resources/linux/ns3/ccn/ns3fibentrydceapplication.py +++ b/src/nepi/resources/linux/ns3/ccn/ns3fibentrydceapplication.py @@ -3,9 +3,8 @@ # Copyright (C) 2014 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. +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation; # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -18,12 +17,12 @@ # Author: Alina Quereilhac from nepi.execution.attribute import Attribute, Flags, Types -from nepi.execution.resource import clsinit_copy, ResourceState, reschedule_delay +from nepi.execution.resource import clsinit_copy, ResourceState from nepi.resources.linux.ns3.ccn.ns3ccndceapplication import LinuxNS3CCNDceApplication @clsinit_copy class LinuxNS3DceFIBEntry(LinuxNS3CCNDceApplication): - _rtype = "ns3::LinuxDceFIBEntry" + _rtype = "linux::ns3::dce::FIBEntry" @classmethod def _register_attributes(cls): @@ -82,8 +81,7 @@ class LinuxNS3DceFIBEntry(LinuxNS3CCNDceApplication): "home": "HOME", }) - env = ";".join(map(lambda k: "%s=%s" % (envs.get(k), str(self.get(k))), - [k for k in envs.keys() if self.get(k)])) + env = ";".join(["%s=%s" % (envs.get(k), str(self.get(k))) for k in [k for k in list(envs.keys()) if self.get(k)]]) return env