Merge "Changing the poll_duration parameter type to int"
This commit is contained in:
commit
6f84275dd9
@ -127,7 +127,7 @@
|
|||||||
# default_network_profile =
|
# default_network_profile =
|
||||||
# Example: default_network_profile = network_pool
|
# Example: default_network_profile = network_pool
|
||||||
|
|
||||||
# (StrOpt) Time in seconds for which the plugin polls the VSM for updates in
|
# (IntOpt) Time in seconds for which the plugin polls the VSM for updates in
|
||||||
# policy profiles.
|
# policy profiles.
|
||||||
#
|
#
|
||||||
# poll_duration =
|
# poll_duration =
|
||||||
|
@ -78,7 +78,7 @@ cisco_n1k_opts = [
|
|||||||
help=_("N1K default policy profile")),
|
help=_("N1K default policy profile")),
|
||||||
cfg.StrOpt('network_node_policy_profile', default='dhcp_pp',
|
cfg.StrOpt('network_node_policy_profile', default='dhcp_pp',
|
||||||
help=_("N1K policy profile for network node")),
|
help=_("N1K policy profile for network node")),
|
||||||
cfg.StrOpt('poll_duration', default='10',
|
cfg.IntOpt('poll_duration', default=10,
|
||||||
help=_("N1K Policy profile polling duration in seconds")),
|
help=_("N1K Policy profile polling duration in seconds")),
|
||||||
cfg.IntOpt('http_pool_size', default=4,
|
cfg.IntOpt('http_pool_size', default=4,
|
||||||
help=_("Number of threads to use to make HTTP requests")),
|
help=_("Number of threads to use to make HTTP requests")),
|
||||||
|
@ -152,7 +152,7 @@ class N1kvNeutronPluginV2(db_base_plugin_v2.NeutronDbPluginV2,
|
|||||||
"""Start a green thread to pull policy profiles from VSM."""
|
"""Start a green thread to pull policy profiles from VSM."""
|
||||||
while True:
|
while True:
|
||||||
self._populate_policy_profiles()
|
self._populate_policy_profiles()
|
||||||
eventlet.sleep(int(c_conf.CISCO_N1K.poll_duration))
|
eventlet.sleep(c_conf.CISCO_N1K.poll_duration)
|
||||||
|
|
||||||
def _populate_policy_profiles(self):
|
def _populate_policy_profiles(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user