ios_logging: change IOS command pipe to section to include (#33100)

This improves compatibility with older IOS devices which do not
support "section" but "include" has been supported for a lot longer.
This commit is contained in:
Steve Glendinning 2017-11-21 03:09:51 +00:00 committed by Trishna Guha
parent a9b15ce881
commit a6e425e5a3

View file

@ -245,7 +245,7 @@ def map_config_to_obj(module):
obj = []
dest_group = ('console', 'host', 'monitor', 'buffered', 'on', 'facility')
data = get_config(module, flags=['| section logging'])
data = get_config(module, flags=['| include logging'])
for line in data.split('\n'):
match = re.search(r'logging (\S+)', line, re.M)