aurae-runtime / auraed

Secure mTLS and gRPC backed runtime daemon. Alternative to systemd. Written in Rust.
https://aurae.io/auraed
Apache License 2.0
60 stars 11 forks source link

Init network #26

Closed Vincinator closed 1 year ago

Vincinator commented 1 year ago

Hi,

This PR uses the crate little-dude/netlink to initialize network devices

How to test

As usual, copy paste steps from hack/README.md:

make build-container
make kernel
make initramfs

# create `vm-br0` bridge on your machine:
make network

# run auraed in a VM as pid 1:
make virsh-start virsh-console virsh-stop

# exit VM console with Ctrl+]

On a second terminal you are now able to ping the auraed node via

# name of network interface "vm-br0" is set up by make network
ping fe80::2%vm-br0 

Screenshot

2022-09-29_19-54-57_screenshot

Vincinator commented 1 year ago

Implemented your feedback

I removed the init_iface functions completely now. I think the initialization code of a given scenario can directly call the network functions.