diff options
Diffstat (limited to 'morphlib/exts/simple-network.configure')
-rwxr-xr-x | morphlib/exts/simple-network.configure | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/morphlib/exts/simple-network.configure b/morphlib/exts/simple-network.configure index a24c5845..b658851b 100755 --- a/morphlib/exts/simple-network.configure +++ b/morphlib/exts/simple-network.configure @@ -14,13 +14,14 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -'''A Morph deployment configuration extension to handle /etc/network/interfaces +'''A Morph deployment configuration extension to handle .network files in +/etc/systemd/network/ -This extension prepares /etc/network/interfaces with the interfaces specified -during deployment. +This extension prepares .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. +If no network configuration is provided, any interface starating by e* +will be configured for DHCP. ''' @@ -37,9 +38,10 @@ class SimpleNetworkError(morphlib.Error): class SimpleNetworkConfigurationExtension(cliapp.Application): - '''Configure /etc/network/interfaces + '''Generate .network files in /etc/systemd/network - Reading NETWORK_CONFIG, this extension sets up /etc/network/interfaces. + Reading NETWORK_CONFIG, this extension sets up .network files in + /etc/systemd/network/. ''' def process_args(self, args): @@ -95,7 +97,7 @@ class SimpleNetworkConfigurationExtension(cliapp.Application): return lines def generate_iface_file(self, stanza): - """Generate an interfaces stanza from the provided data.""" + """Generate an .network file from the provided data.""" name = stanza['name'] itype = stanza['type'] |