No Description

Fabian Peter Hammerle 3c9d6dbf40 use mnl_attr_validate 7 years ago
Makefile 719c318160 implement Link in link.cpp 7 years ago
README.md a41a908406 readme: added links to libmnl source & documentation 7 years ago
hardware_address.h 3c9d6dbf40 use mnl_attr_validate 7 years ago
link.cpp 3c9d6dbf40 use mnl_attr_validate 7 years ago
link.h 22560a58b0 added attr 'mtu' 7 years ago
main.cpp 125f8da326 main.cpp: adapt includes 7 years ago
operstate.h 3c9d6dbf40 use mnl_attr_validate 7 years ago
vector.h 6a549b5f4d move definition of vector to vector.h 7 years ago
yaml.h ede9844a6e move definition of YamlObject to yaml.h 7 years ago

README.md

ipyml

Show network device configuration in YAML format.

Build Dependencies

apt install libmnl-dev linux-libc-dev g++

Example

$ ipyml

- ifname: lo
  address: 00:00:00:00:00:00
  broadcast: 00:00:00:00:00:00
  mtu: 65536
  operstate: unknown
- ifname: eth0
  address: 11:22:33:44:55:66
  broadcast: ff:ff:ff:ff:ff:ff
  mtu: 1500
  operstate: down
- ifname: wlan0
  address: 77:88:99:00:aa:bb
  broadcast: ff:ff:ff:ff:ff:ff
  mtu: 1500
  operstate: up

Links

libmnl source

libmnl documentation