networkd

package
v0.0.0-...-b79a0d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package networkd can be used to write config files for systemd-networkd. Used in conjunction with github.com/purecloudlabs/gprovision/pkg/netexport.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Defaults

func Defaults(platform *appliance.Variant) (ifaces nx.IfMap)

Defaults creates a set of config files with platform default names, DHCP, and current device's MACs. Must be called before any diag ports are disabled.

func Export

func Export(ifaces nx.IfMap, tarball string) (err error)

Export exports config to a tarball.

func Write

func Write(ifaces nx.IfMap, dir string)

Write writes config to a set of files.

Types

type NetworkFileStruct

type NetworkFileStruct struct {
	nx.WinNic
	Vlans []uint64
}

for the network file and template, the WinNic struct is embedded in another struct containing additional vlan info

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL