Skip to content

Instantly share code, notes, and snippets.

@svinota
Created May 7, 2016 12:54
Show Gist options
  • Save svinota/43907409c3ddc0cca90f2b6032ed7694 to your computer and use it in GitHub Desktop.
Save svinota/43907409c3ddc0cca90f2b6032ed7694 to your computer and use it in GitHub Desktop.
from fjorton import fjorton
from fjorton import apply
from pyroute2 import IPRoute
from functools import partial
@fjorton
def f():
with IPRoute() as ip:
ip.get_links()
partial(map, lambda x: x.get_attr('IFLA_IFNAME'))
apply
print(f())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment