summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <javier.jardon@codethink.co.uk>2015-02-27 12:41:40 +0000
committerJavier Jardón <javier.jardon@codethink.co.uk>2015-02-27 12:44:14 +0000
commit5ef1a28c82871c8500bdc1bb30ce415749c84c83 (patch)
treeabe54d14c88aef9b8f9d690cff8de83039f55cec
parentd9f1ebed08da73bd65924e514830db9481c8b8b1 (diff)
downloadmorph-5ef1a28c82871c8500bdc1bb30ce415749c84c83.tar.gz
simple-network.configure: No need to configure loopback interface
-rwxr-xr-xmorphlib/exts/simple-network.configure3
1 files changed, 3 insertions, 0 deletions
diff --git a/morphlib/exts/simple-network.configure b/morphlib/exts/simple-network.configure
index 2c098416..258bf7a1 100755
--- a/morphlib/exts/simple-network.configure
+++ b/morphlib/exts/simple-network.configure
@@ -68,6 +68,9 @@ class SimpleNetworkConfigurationExtension(cliapp.Application):
name = stanza['name']
itype = stanza['type']
+ if itype == "loopback":
+ return
+
lines = ["[Match]"]
lines += ["Name=%s\n" % name]
lines += ["[Network]"]