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.
pull/33117/head
Steve Glendinning 7 years ago committed by Trishna Guha
parent a9b15ce881
commit a6e425e5a3

@ -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)

Loading…
Cancel
Save