34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From 46104725c121def5d85f492afd91e618c1c7c240 Mon Sep 17 00:00:00 2001
|
|
From: Fernando Fernandez Mancera <ffmancera@riseup.net>
|
|
Date: Tue, 27 Oct 2020 12:23:18 +0100
|
|
Subject: [PATCH 2/2] nm.ipv6: call clear_routing_rules() when creating the
|
|
setting
|
|
|
|
In order to remove IPv6 routing rules Nmstate needs to call
|
|
clear_routing_rules() on the IPv6 setting as it is done on the IPv4
|
|
setting.
|
|
|
|
Added a testcase for this.
|
|
|
|
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
|
|
---
|
|
libnmstate/nm/ipv6.py | 1 +
|
|
tests/integration/route_test.py | 15 +++++++++++++++
|
|
2 files changed, 16 insertions(+)
|
|
|
|
diff --git a/libnmstate/nm/ipv6.py b/libnmstate/nm/ipv6.py
|
|
index f252578..9777c89 100644
|
|
--- a/libnmstate/nm/ipv6.py
|
|
+++ b/libnmstate/nm/ipv6.py
|
|
@@ -106,6 +106,7 @@ def create_setting(config, base_con_profile):
|
|
setting_ip.props.never_default = False
|
|
setting_ip.props.ignore_auto_dns = False
|
|
setting_ip.clear_routes()
|
|
+ setting_ip.clear_routing_rules()
|
|
setting_ip.props.gateway = None
|
|
setting_ip.props.route_table = Route.USE_DEFAULT_ROUTE_TABLE
|
|
setting_ip.props.route_metric = Route.USE_DEFAULT_METRIC
|
|
--
|
|
2.25.4
|
|
|