ansible/changelogs/fragments/ip_netns-fix-exists.yaml
Nathaniel Case 238939b523 [2.7] fix error checking if netns exists (#47397) (#47441)
* [2.7] fix error checking if netns exists (#47397)

This patch fixes an error that occurs when attempting to see if the
netns already exists on the remote device.  This change will now execute
`ip netns list` and check if the desired namespace is in the output.

Signed-off-by: Peter Sprygada <psprygada@ansible.com>
(cherry picked from commit 299a5e4)

Co-authored-by: Peter Sprygada <privateip@users.noreply.github.com>

* Add changelog entry
2018-10-23 07:16:10 -07:00

5 lines
220 B
YAML

---
bugfixes:
- Fixes an error that occurs when attempting to see if the netns already exists
on the remote device. This change will now execute ``ip netns list`` and check
if the desired namespace is in the output.