path: root/morphlib/exts/simple-network.configure
diff options
authorJavier Jardón <>2015-03-11 19:48:02 +0000
committerJavier Jardón <>2015-03-16 17:59:55 +0000
commitdacb812a9589f1dade8b9b66ae9c17947c2301d5 (patch)
treebbc7fd4522c1a27119154874a0a1e83bc7bdf8ee /morphlib/exts/simple-network.configure
parentf9ba8e880da87af2952b6daef15c720d2c860217 (diff)
simple-network.configure: Update documentation
Diffstat (limited to 'morphlib/exts/simple-network.configure')
1 files changed, 9 insertions, 6 deletions
diff --git a/morphlib/exts/simple-network.configure b/morphlib/exts/simple-network.configure
index fbbe6c4e..7c078c93 100755
--- a/morphlib/exts/simple-network.configure
+++ b/morphlib/exts/simple-network.configure
@@ -13,13 +13,15 @@
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <>.
-'''A Morph deployment configuration extension to handle /etc/network/interfaces
+'''A Morph deployment configuration extension to handle network configutation
-This extension prepares /etc/network/interfaces with the interfaces specified
-during deployment.
+This extension prepares /etc/network/interfaces and networkd .network files
+in /etc/systemd/network/ with the interfaces specified during deployment.
If no network configuration is provided, eth0 will be configured for DHCP
-with the hostname of the system.
+with the hostname of the system in the case of /etc/network/interfaces.
+In the case of networkd, any interface starting by e* will be configured
+for DHCP
@@ -36,9 +38,10 @@ class SimpleNetworkError(morphlib.Error):
class SimpleNetworkConfigurationExtension(cliapp.Application):
- '''Configure /etc/network/interfaces
+ '''Configure /etc/network/interfaces and generate networkd .network files
- Reading NETWORK_CONFIG, this extension sets up /etc/network/interfaces.
+ Reading NETWORK_CONFIG, this extension sets up /etc/network/interfaces
+ and .network files in /etc/systemd/network/.
def process_args(self, args):