summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author00184532 <lu.yao135@zte.com.cn>2017-11-08 09:35:28 +0800
committer00184532 <lu.yao135@zte.com.cn>2017-11-08 09:35:28 +0800
commit338ba059e72c9113a21729f41e584eabd68d4fe8 (patch)
tree487671575f0db7c7b5b647e3ad9679be7aa9ae7b
parent8c42ba2367f5197dbb158d5f50b89b332b484d75 (diff)
modify iterface to interface
Change-Id: I659906163ec7bb5156786269349cc819ea051754 Signed-off-by: 00184532 <lu.yao135@zte.com.cn>
-rw-r--r--deploy/config/network.py2
-rw-r--r--tests/unit/config/test_network.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/deploy/config/network.py b/deploy/config/network.py
index 4d877a75..1966edee 100644
--- a/deploy/config/network.py
+++ b/deploy/config/network.py
@@ -58,7 +58,7 @@ class NetworkConfig(object):
def _parse_interfaces(self, interfaces):
for interface in interfaces:
self._setattr(interface['name'],
- 'iterface',
+ 'interface',
interface['interface'])
def _setattr(self, network_type, field, value):
diff --git a/tests/unit/config/test_network.py b/tests/unit/config/test_network.py
index 98107929..de04861e 100644
--- a/tests/unit/config/test_network.py
+++ b/tests/unit/config/test_network.py
@@ -78,7 +78,7 @@ def test_create_NetworkConf_instance(conf_file_dir, network_file_name, metadatas
for interface in interfaces:
name = interface['name']
mapname = type2name[name]
- interface_name = '{}_{}'.format(mapname, 'iterface')
+ interface_name = '{}_{}'.format(mapname, 'interface')
assert getattr(NetworkConfClient, interface_name) == interface['interface']
assert getattr(NetworkConfClient, 'internal_vip') == internal_vip