summaryrefslogtreecommitdiff
diff options
authorJonathan Cave <jonathan.cave@canonical.com>2018-12-06 10:26:23 +0000
committerJonathan Cave <jonathan.cave@canonical.com>2018-12-06 10:26:23 +0000
commite3faa430bcc196ad8c24cc1031adbe7329acea0c (patch)
tree1f3b954057e754e508fc28a171b25d143cd8cc7c
parente66477fc6731cd21192b965360484b1ddb490bbd (diff)
ethernet: allow check static to be used on classic
-rw-r--r--units/ethernet/jobs.pxu4
1 files changed, 4 insertions, 0 deletions
diff --git a/units/ethernet/jobs.pxu b/units/ethernet/jobs.pxu
index cf684c0..cf1c02b 100644
--- a/units/ethernet/jobs.pxu
+++ b/units/ethernet/jobs.pxu
@@ -387,8 +387,12 @@ plugin: shell
estimated_duration: 2s
command: check_static {{ interface }}
requires:
+ {%- if __on_ubuntucore__ %}
snap.name == 'network-manager'
connections.slot == 'network-manager:service' and connections.plug == '{{ __system_env__["SNAP_NAME"] }}:network-manager'
+ {%- else %}
+ executable.name == 'nmcli'
+ {% endif -%}
plugin: shell
category_id: com.canonical.plainbox::ethernet