Commit Graph

18 Commits

Author SHA1 Message Date
enkore
2a77d15f6c network: changed detached_down default 2014-06-13 20:06:46 +02:00
Tom X. Tobin
df50913332 Support bonded interfaces under Linux
The "network" and "wireless" modules now support interfaces enslaved to
a bonding master. We check sysfs for bonded interfaces, and update each
slave's AF_INET/AF_INET6 from its master.
2014-06-10 21:43:09 -04:00
Alastair Houghton
8103cf35a1 Replaced references to netifaces-py3 with netifaces. 2014-05-10 12:11:22 +01:00
enkore
f06a76ad52 PEP8 2014-04-30 14:51:41 +02:00
Armin Fisslthaler
0e7ecd1d67 prefer non link-local v6 addresses 2014-04-15 21:51:51 +02:00
Jason Hite
10aca8d489 Better checking of the MAC address
Use a Try... Except... block instead of a function flag when checking
for the MAC address. This has the benefit of requiring no changes for
user, but fixes the problem with interfaces that do not have MACs.
2014-04-02 15:49:05 -04:00
Jason Hite
3bbd8d4765 Optionally skip MAC address check in network
Network interfaces don't necessarily have a MAC address. For example,
the tunnel devices created by OpenVPN do not. Previously, passing a
network interface that did not have a MAC address caused the network
module to fail, since it assumed that there would be one.

This commit just adds a flag to the network module "mac", which defaults
to True. If True, the module behaves like before. If False, the check
for the MAC address is skipped and the {mac} format variable is replaced
with "NONE".

I tested this with my OpenVPN interface as well as my regular interface
and it works fine.
2014-04-02 15:34:35 -04:00
enkore
aa09079903 Add detached_down option (#26)
And some other stuff I obviously forget to commit last time.
Oh, that's just the RST port... okay :)
2014-01-16 13:39:17 +01:00
enkore
78c01dd3e5 PEP8 2013-10-01 15:22:09 +02:00
enkore
e848fc4a6f Improve documentation 2013-07-31 21:39:59 +02:00
Zack Gold
33e7f6559b Update network.py
interface was spelled wrong
2013-06-03 18:36:06 -06:00
enkore
39095594c8 README 2013-03-22 14:10:44 +01:00
enkore
375ba3af7b Support for the 3rd version of the i3bar-onclick-patch 2013-03-10 01:27:23 +01:00
enkore
1680293e56 3.8: Add wireless module based on basiciw 2013-03-08 19:51:55 +01:00
enkore
4d42589213 Small fix (3.5)
Version numbering policy:
Increment the most righthand number every single time the package
is uploaded to PyPI.
2013-03-07 18:49:57 +01:00
enkore
4cd1b177de README 2013-03-07 18:45:31 +01:00
enkore
a2dd90c657 CIDR support for network module 2013-03-07 18:40:18 +01:00
enkore
890e8a91bc Add network module (3.4), close #4 2013-03-07 18:09:05 +01:00