aboutsummaryrefslogtreecommitdiffstats
path: root/vicn/resource/icn/iping.py
diff options
context:
space:
mode:
authorMarcel Enguehard <mengueha+fdio@cisco.com>2017-07-19 11:26:26 +0200
committerMarcel Enguehard <mengueha+fdio@cisco.com>2017-07-19 11:51:26 +0000
commit3e6678f9c692553e8902da4d6fb1fe6c087db1f4 (patch)
tree580a46ca5de22a044319eabb295ad980d50589ec /vicn/resource/icn/iping.py
parent08c4f765cf29dbd6e9a616c542552417eece14fc (diff)
* GUI resource
* MemIf interface for VPP * Better netmodel integration * Draft documentation * New tutorials * Improved monitoring and error handling * Refactored IP addresses and prefixes representation * Improved image mgmt for LXD * Various bugfixes and code refactoring Change-Id: I90da6cf7b5716bc7deb6bf4e24d3f9f01b5a9b0f Signed-off-by: Marcel Enguehard <mengueha+fdio@cisco.com>
Diffstat (limited to 'vicn/resource/icn/iping.py')
-rw-r--r--vicn/resource/icn/iping.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/vicn/resource/icn/iping.py b/vicn/resource/icn/iping.py
index 0e04eadc..4494c79f 100644
--- a/vicn/resource/icn/iping.py
+++ b/vicn/resource/icn/iping.py
@@ -36,28 +36,28 @@ class IPing(ICNApplication):
__package_names__ = ["libicnet"]
- prefixes = Attribute(String,
+ prefixes = Attribute(String,
description = "name served by the ping server",
default = lambda self: self.default_name(),
mandatory = False,
multiplicity = Multiplicity.OneToMany)
node = Attribute(Node,
requirements=[
- Requirement("forwarder",
- capabilities = set(['ICN_SUITE_CCNX_1_0']),
+ Requirement("forwarder",
+ capabilities = set(['ICN_SUITE_CCNX_1_0']),
properties = {"protocol_suites" : ICN_SUITE_CCNX_1_0})
])
- #--------------------------------------------------------------------------
+ #--------------------------------------------------------------------------
# Methods
- #--------------------------------------------------------------------------
+ #--------------------------------------------------------------------------
def __method_start__(self):
return self._build_command()
- #--------------------------------------------------------------------------
+ #--------------------------------------------------------------------------
# Internal methods
- #--------------------------------------------------------------------------
+ #--------------------------------------------------------------------------
def default_name(self):
return ['/iping']
@@ -72,16 +72,16 @@ class IPingClient(IPing, Producer):
Resource: IPingClient
"""
- flood = Attribute(Bool, description = 'enable flood mode',
+ flood = Attribute(Bool, description = 'enable flood mode',
default = False)
count = Attribute(Integer, description = 'number of ping to send')
- interval = Attribute(Integer,
+ interval = Attribute(Integer,
description = 'interval between interests in ping mode')
size = Attribute(Integer, description = 'size of the interests')
- #--------------------------------------------------------------------------
+ #--------------------------------------------------------------------------
# Internal methods
- #--------------------------------------------------------------------------
+ #--------------------------------------------------------------------------
def _build_command(self):
template = ["iPing_Client", "-l ccnx:{prefix}"]
@@ -110,9 +110,9 @@ class IPingServer(IPing, Consumer):
size = Attribute(Integer, description = "size of the payload")
- #--------------------------------------------------------------------------
+ #--------------------------------------------------------------------------
# Internal methods
- #--------------------------------------------------------------------------
+ #--------------------------------------------------------------------------
def _build_command(self):
template = ["iPing_Server", "-l ccnx:{prefix}"]