Closed IogaMaster closed 5 months ago
Thanks for your contribution!
Guide me through what you want done for this extractor
Anything you can come up with really :P More seriously though, I think we can start with whatever you are comfortable implementing and we can always extend it later if we find new interesting stuff. What I usually have in mind for networking is:
addresses = ["DHCP"]
if you know that an interface uses DHCP (maybe we'll convert that to a new information option later)Just pick whatever you like.
Two additional thoughts:
networking.useNetworkd
option, which should probably control this extractor's default enable option, because the systemd extractor would in that case take care of the extraction.Okay thanks!
static ipv4/ipv6 addresses (if specified)
Im working on this rn
@oddlama
known interfaces, so what you already have mac addresses (if specified) static ipv4/ipv6 addresses (if specified) interface type (ethernet / wifi / macvlan / macvtap / tun / tap / ...) you could think about setting addresses = ["DHCP"] if you know that an interface uses DHCP (maybe we'll convert that to a new information option later) anything else you can come up with, we can extend the list of extracted information. For the future I have VLANs in mind but that's probably going to need changes in the renderer too.
All are done!
I don't know what to add I will keep looking at the search.nixos.org reference
Generated from:
networking.interfaces.eth0 = {
name = "eth0";
ipv4.addresses = [
{
address = "192.168.25.141";
prefixLength = 24;
}
];
ipv6.addresses = [
{
address = "fdfd:b3f0:482::1";
prefixLength = 48;
}
];
macAddress = "3abansdsjh";
};
DHCP (just remove ip addresses from config):
interface type (ethernet / wifi / macvlan / macvtap / tun / tap / ...)
This isn't done, I missed it when I read the list. whoops :smile:
Also can confirm that topology.self is functional!
@oddlama I don't think there is a way that we can get the interface type?
It's just something that I did for systemd-networkd. If that information isn't available on networking.interfaces then I'd say just keep the current default (which is ethernet).
I can consider this module done for now! Looking for merge!
Guide me through what you want done for this extractor
Right now it just shows the interfaces on the nodes.