Adding networking config parameters

- Adding the ping_count and accepted_packet_loss params

Change-Id: Id6a1e7629b58e0e088fa1d5ffa243ac4936b0728
This commit is contained in:
Leonardo Maycotte 2016-04-07 23:57:33 -05:00
parent ebfead8694
commit 99e03ee52f
1 changed files with 10 additions and 0 deletions

View File

@ -105,3 +105,13 @@ class NetworkingBaseConfig(ConfigSectionInterface):
def check_response_attrs(self):
"""Flag to enable checking the response attributes"""
return self.get_boolean("check_response_attrs", True)
@property
def ping_count(self):
"""Ping count to be used like: ping -c ping_count"""
return int(self.get("ping_count", 3))
@property
def accepted_packet_loss(self):
"""Accepted packet loss percent for server pings"""
return int(self.get("accepted_packet_loss", 0))