Browse Source

Trival fix some typo

1. What is the problem?
There were some typos in this module, which should be modified.
2. What is the solution to the problem?
This change modifies the spelling mistakes.
3. What the features need to be implemented to the Tricircle to
realize the solution?
No new features

Change-Id: I988a974e8887c09c730bc0172aacee0fb85b2c3b
changes/29/413829/4
Kevin_Zheng 5 years ago
committed by Zhenyu Zheng
parent
commit
1ca024d8dc
  1. 2
      devstack/verify_top_install.sh
  2. 2
      tricircle/api/controllers/routing.py
  3. 2
      tricircle/network/helper.py
  4. 2
      tricircle/tests/unit/network/test_central_plugin.py
  5. 2
      tricircle/xjob/xmanager.py

2
devstack/verify_top_install.sh

@ -26,7 +26,7 @@ if [ ! -r admin-openrc.sh ];then
exit 1
fi
echo "Begining the verify testing..."
echo "Beginning the verify testing..."
echo "Import client environment variables:"
source $TEST_DIR/admin-openrc.sh

2
tricircle/api/controllers/routing.py

@ -122,7 +122,7 @@ class RoutingController(rest.RestController):
if not policy.enforce(context, policy.ADMIN_API_ROUTINGS_LIST):
return utils.format_api_error(
403, _('Unauthorized to to show all resource routings'))
403, _('Unauthorized to show all resource routings'))
filters = self._get_filters(kwargs)
filters = [{'key': key,

2
tricircle/network/helper.py

@ -571,7 +571,7 @@ class NetworkHelper(object):
@staticmethod
def get_create_sg_rule_body(rule, sg_id, ip=None):
ip = ip or rule['remote_ip_prefix']
# if ip is passed, this is a extended rule for remote group
# if ip is passed, this is an extended rule for remote group
return {'security_group_rule': {
'tenant_id': rule['tenant_id'],
'remote_group_id': None,

2
tricircle/tests/unit/network/test_central_plugin.py

@ -1513,7 +1513,7 @@ class PluginTest(unittest.TestCase,
for net in TOP_NETS:
if net['name'].startswith('ns_bridge'):
t_ns_bridge_net_id = net['id']
# N-S bridge not created since no extenal network created
# N-S bridge not created since no external network created
self.assertIsNone(t_ns_bridge_net_id)
device_ids = ['', '', '']

2
tricircle/xjob/xmanager.py

@ -672,7 +672,7 @@ class XManager(PeriodicTasks):
@staticmethod
def _construct_bottom_rule(rule, sg_id, ip=None):
ip = ip or rule['remote_ip_prefix']
# if ip is passed, this is a extended rule for remote group
# if ip is passed, this is an extended rule for remote group
return {'remote_group_id': None,
'direction': rule['direction'],
'remote_ip_prefix': ip,

Loading…
Cancel
Save