I hate dbus-next
This commit is contained in:
@@ -193,7 +193,7 @@ class Config:
|
|||||||
iface = bus.get_proxy_object(
|
iface = bus.get_proxy_object(
|
||||||
"org.freedesktop.network1", path, intro
|
"org.freedesktop.network1", path, intro
|
||||||
).get_interface("org.freedesktop.network1.Link")
|
).get_interface("org.freedesktop.network1.Link")
|
||||||
if await iface.get_ipv4_address_state() == "routable":
|
if await iface.get_i_pv4_address_state() == "routable":
|
||||||
# Only process interfaces with a routable IPv4 address
|
# Only process interfaces with a routable IPv4 address
|
||||||
desc = json.loads(await iface.call_describe())
|
desc = json.loads(await iface.call_describe())
|
||||||
# we'll create an exclusion for any kernel-protocol, link-scoped IPv4 route on this interface.
|
# we'll create an exclusion for any kernel-protocol, link-scoped IPv4 route on this interface.
|
||||||
|
|||||||
Reference in New Issue
Block a user