No Description

Fabian Peter Hammerle bb4327dbfc show ipv4 addresses 7 years ago
Makefile 719c318160 implement Link in link.cpp 7 years ago
README.md bb4327dbfc show ipv4 addresses 7 years ago
address.h bb4327dbfc show ipv4 addresses 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 bb4327dbfc show ipv4 addresses 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
links:
- 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
addresses:
- 127.0.0.1
- 192.168.2.101
- 192.168.20.11

Links

libmnl source

libmnl documentation