mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Changes to enable network_cli and netconf on iosxr integration tests. (#35269)
* * Changes to enable network_cli and netconf on modules. * limits connection local for single TC per playbook. * * adds a note on why only 1 TC is executed with connection: local
This commit is contained in:
@@ -359,6 +359,8 @@ def get_oper(module, filter=None):
|
||||
|
||||
if filter is not None:
|
||||
response = conn.get(filter)
|
||||
else:
|
||||
return None
|
||||
|
||||
return to_bytes(etree.tostring(response), errors='surrogate_then_replace').strip()
|
||||
|
||||
|
||||
@@ -431,7 +431,7 @@ class NCConfiguration(ConfigBase):
|
||||
if self._want['name_servers']:
|
||||
server_param = {}
|
||||
server_param['vrf'] = self._want['vrf']
|
||||
server_param['order'] = '1'
|
||||
server_param['order'] = '0'
|
||||
for server in self._want['name_servers']:
|
||||
if server in sys_node['name_servers']:
|
||||
server_param['name_servers'] = server
|
||||
@@ -476,7 +476,7 @@ class NCConfiguration(ConfigBase):
|
||||
server_adds, server_removes = diff_list(self._want['name_servers'], sys_node['name_servers'])
|
||||
server_param = {}
|
||||
server_param['vrf'] = self._want['vrf']
|
||||
server_param['order'] = '1'
|
||||
server_param['order'] = '0'
|
||||
for domain in server_adds:
|
||||
if domain not in sys_node['name_servers']:
|
||||
server_param['name_servers'] = domain
|
||||
|
||||
Reference in New Issue
Block a user