diff options
author | GomathiselviS <gomathiselvi@gmail.com> | 2021-03-30 18:50:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-30 22:50:09 +0000 |
commit | 210c758d5cfcf762d2d1801bc5e4bc68207d9ff0 (patch) | |
tree | 1ca69337a5998a8ef26efc5dc9655978baff632d /plugins | |
parent | 6d2b78246f258ca31f6e01007b9a4376138455a6 (diff) | |
download | vyos.vyos-210c758d5cfcf762d2d1801bc5e4bc68207d9ff0.tar.gz vyos.vyos-210c758d5cfcf762d2d1801bc5e4bc68207d9ff0.zip |
Add support for wireguard interface (#135)
Add support for wireguard interface
Reviewed-by: https://github.com/apps/ansible-zuul
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/module_utils/network/vyos/facts/interfaces/interfaces.py | 2 | ||||
-rw-r--r-- | plugins/module_utils/network/vyos/utils/utils.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/module_utils/network/vyos/facts/interfaces/interfaces.py b/plugins/module_utils/network/vyos/facts/interfaces/interfaces.py index 13f22e1..ea3933c 100644 --- a/plugins/module_utils/network/vyos/facts/interfaces/interfaces.py +++ b/plugins/module_utils/network/vyos/facts/interfaces/interfaces.py @@ -60,7 +60,7 @@ class InterfacesFacts(object): objs = [] interface_names = findall( - r"^set interfaces (?:ethernet|bonding|vti|loopback|vxlan|openvpn) (?:\'*)(\S+)(?:\'*)", + r"^set interfaces (?:ethernet|bonding|vti|loopback|vxlan|openvpn|wireguard) (?:\'*)(\S+)(?:\'*)", data, M, ) diff --git a/plugins/module_utils/network/vyos/utils/utils.py b/plugins/module_utils/network/vyos/utils/utils.py index f6ac9f5..43f3fc9 100644 --- a/plugins/module_utils/network/vyos/utils/utils.py +++ b/plugins/module_utils/network/vyos/utils/utils.py @@ -38,6 +38,8 @@ def get_interface_type(interface): return "loopback" elif interface.startswith("vtun"): return "openvpn" + elif interface.startswith("wg"): + return "wireguard" def dict_delete(base, comparable): |