-
-
Save svinota/43907409c3ddc0cca90f2b6032ed7694 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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