tmp = dict() | tmp = dict() | ||||
tmpiface = dict() | tmpiface = dict() | ||||
ifaces = dict() | ifaces = dict() | ||||
out = __salt__['cmd.run']('wg', | |||||
out = __salt__['cmd.run']('wg show all', | |||||
env={'WG_HIDE_KEYS': 'always' if hide_keys else 'never'}) | env={'WG_HIDE_KEYS': 'always' if hide_keys else 'never'}) | ||||
for line in out.splitlines(): | for line in out.splitlines(): | ||||
if line.startswith('interface: '): | if line.startswith('interface: '): |