Aucune description

Fabian Peter Hammerle 2e74587136 Link: rename attr 'hwaddr' to 'address' to match IFLA_* il y a 7 ans
Makefile 719c318160 implement Link in link.cpp il y a 7 ans
README.md 2e74587136 Link: rename attr 'hwaddr' to 'address' to match IFLA_* il y a 7 ans
hardware_address.h 5c8654b358 move definition of HardwareAddress to hardware_address.h il y a 7 ans
link.cpp 2e74587136 Link: rename attr 'hwaddr' to 'address' to match IFLA_* il y a 7 ans
link.h 2e74587136 Link: rename attr 'hwaddr' to 'address' to match IFLA_* il y a 7 ans
main.cpp f8b4a4df09 move definition of link_attr_cb to Link::mnl_attr_cb il y a 7 ans
operstate.h 56a232026a added attr 'operstate' il y a 7 ans
vector.h 6a549b5f4d move definition of vector to vector.h il y a 7 ans
yaml.h ede9844a6e move definition of YamlObject to yaml.h il y a 7 ans

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
  operstate: unknown
- ifname: eth0
  address: 11:22:33:44:55:66
  broadcast: ff:ff:ff:ff:ff:ff
  operstate: down
- ifname: wlan0
  address: 77:88:99:00:aa:bb
  broadcast: ff:ff:ff:ff:ff:ff
  operstate: up