Page MenuHomeVyOS Platform

XML: Python default dictionary does not obey underscore (_) when flat is False
Closed, ResolvedPublicBUG

Description

>>> defaults(['service', 'console-server'], flat=True)
{'device_data_bits': '8', 'device_stop_bits': '1', 'device_parity': 'none'}
>>> defaults(['service', 'console-server'], flat=False)
{'device': {'data-bits': '8', 'stop-bits': '1', 'parity': 'none'}}

Details

Difficulty level
Easy (less than an hour)
Version
1.3-rolling-202006271315
Why the issue appeared?
Implementation mistake
Is it a breaking change?
Perfectly compatible

Event Timeline

c-po created this task.
c-po closed this task as Resolved.Sun, Jun 28, 8:06 AM
c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po changed Why the issue appeared? from Will be filled on close to Implementation mistake.
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
pasik added a subscriber: pasik.Sun, Jun 28, 7:07 PM