~raharper/cloud-init/trunk.smartos-sdc-nics-fix

« back to all changes in this revision

Viewing changes to cloudinit/net/__init__.py

support network rendering to sysconfig (for centos and RHEL)

This intends to add support for rendering of network data under sysconfig
distributions (centos and rhel).  The end result will be support for
network configuration via ConfigDrive or NoCloud on these OS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
LOG = logging.getLogger(__name__)
27
27
SYS_CLASS_NET = "/sys/class/net/"
28
28
DEFAULT_PRIMARY_INTERFACE = 'eth0'
29
 
LINKS_FNAME_PREFIX = "etc/systemd/network/50-cloud-init-"
30
29
 
31
30
 
32
31
def sys_dev_path(devname, path=""):