summaryrefslogtreecommitdiff
path: root/cloudinit/distros/bsd.py
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2020-06-23 10:08:16 -0400
committerGitHub <noreply@github.com>2020-06-23 10:08:16 -0400
commit9a97a3f24e196401a9c54e9c7977ef6a03c98aeb (patch)
treed761417e508ccf721ef91148437288528c8bc325 /cloudinit/distros/bsd.py
parentddc4c2de1b1e716b31384af92f5356bfc6136944 (diff)
downloadvyos-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.py2
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"