diff options
author | Daniel Watkins <oddbloke@ubuntu.com> | 2020-06-23 10:08:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-23 10:08:16 -0400 |
commit | 9a97a3f24e196401a9c54e9c7977ef6a03c98aeb (patch) | |
tree | d761417e508ccf721ef91148437288528c8bc325 /cloudinit/distros/bsd.py | |
parent | ddc4c2de1b1e716b31384af92f5356bfc6136944 (diff) | |
download | vyos-cloud-init-9a97a3f24e196401a9c54e9c7977ef6a03c98aeb.tar.gz vyos-cloud-init-9a97a3f24e196401a9c54e9c7977ef6a03c98aeb.zip |
distros.networking: initial implementation of layout (#391)
This commit introduces the initial structure for the "cloudinit.net -> cloudinit.distros.networking Hierarchy" refactor, as detailed in [0]. It also updates that section with some changes driven by this initial implementation, as well as adding a lot more specifics to it.
[0] https://cloudinit.readthedocs.io/en/latest/topics/hacking.html#cloudinit-net-cloudinit-distros-networking-hierarchy
Diffstat (limited to 'cloudinit/distros/bsd.py')
-rw-r--r-- | cloudinit/distros/bsd.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/distros/bsd.py b/cloudinit/distros/bsd.py index c2d1f77d..2ed7a7d5 100644 --- a/cloudinit/distros/bsd.py +++ b/cloudinit/distros/bsd.py @@ -7,11 +7,13 @@ from cloudinit import log as logging from cloudinit import net from cloudinit import subp from cloudinit import util +from .networking import BSDNetworking LOG = logging.getLogger(__name__) class BSD(distros.Distro): + networking_cls = BSDNetworking hostname_conf_fn = '/etc/rc.conf' rc_conf_fn = "/etc/rc.conf" |