Skip to content

Commit 6f84275

Browse files
Jenkinsopenstack-gerrit
Jenkins
authored andcommitted
Merge "Changing the poll_duration parameter type to int"
2 parents 2dfe3f8 + 13d55a7 commit 6f84275

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

etc/neutron/plugins/cisco/cisco_plugins.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
# default_network_profile =
128128
# Example: default_network_profile = network_pool
129129

130-
# (StrOpt) Time in seconds for which the plugin polls the VSM for updates in
130+
# (IntOpt) Time in seconds for which the plugin polls the VSM for updates in
131131
# policy profiles.
132132
#
133133
# poll_duration =

neutron/plugins/cisco/common/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
help=_("N1K default policy profile")),
7979
cfg.StrOpt('network_node_policy_profile', default='dhcp_pp',
8080
help=_("N1K policy profile for network node")),
81-
cfg.StrOpt('poll_duration', default='10',
81+
cfg.IntOpt('poll_duration', default=10,
8282
help=_("N1K Policy profile polling duration in seconds")),
8383
cfg.IntOpt('http_pool_size', default=4,
8484
help=_("Number of threads to use to make HTTP requests")),

neutron/plugins/cisco/n1kv/n1kv_neutron_plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def _poll_policy_profiles(self):
152152
"""Start a green thread to pull policy profiles from VSM."""
153153
while True:
154154
self._populate_policy_profiles()
155-
eventlet.sleep(int(c_conf.CISCO_N1K.poll_duration))
155+
eventlet.sleep(c_conf.CISCO_N1K.poll_duration)
156156

157157
def _populate_policy_profiles(self):
158158
"""

0 commit comments

Comments
 (0)