metal-core

command module
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

README

metal-core

metal-core dynamically reconfigures switches based on the state held in the metal-api. Therefore, it must run on every leaf switch and have control over the configuration files for network interfaces and the routing suite (/etc/frr/frr.config) of the switches.

In the PXE-boot process of machines metal-core will act as a proxy between API-requests issued by pixiecore and the metal-api. The metal-api will answer with a mini OS (see metal-hammer and kernel).

Besides that, it ensures the proper boot order (IPMI) and monitors their liveliness with LLDP).

Building

Install mage

https://magefile.org/

Set GOPATH to a writeable directory of your choice.

go get -u -d github.com/magefile/mage
cd $GOPATH/src/github.com/magefile/mage
go run bootstrap.go

The "mage" binary will be placed in $GOPATH/bin, add this to your PATH.

Run mage
mage build

This triggers

  • the installation of build dependencies like swagger
  • the generation of the client code for spec/metal-core.json and domain/metal-api.json
  • after that, bin/metal-core is built

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
internal
api
pkg

Jump to

Keyboard shortcuts

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