Skip to content

Commit f49c96a

Browse files
author
Guillaume Valadon
authored
Merge pull request #2728 from guedou/bsd_fixes_resync
Backup & restore conf.route.routes
2 parents 6926301 + f040115 commit f49c96a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/regression.uts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11476,6 +11476,7 @@ len(r4.routes) == len_r4
1147611476

1147711477
dummy_interface = get_dummy_interface()
1147811478

11479+
bck_conf_route_routes = conf.route.routes
1147911480
conf.route.routes = [
1148011481
(0, 0, '172.21.230.1', dummy_interface, '172.21.230.10', 1), # 0.0.0.0 / 0.0.0.0 == 255.255.255.255
1148111482
(2851995648, 4294901760, '0.0.0.0', dummy_interface, '172.21.230.10', 1), # 169.254.0.0 / 255.255.0.0 == 169.254.255.255
@@ -11487,7 +11488,7 @@ conf.route.routes = [
1148711488
]
1148811489

1148911490
assert sorted(conf.route.get_if_bcast(dummy_interface)) == sorted(['169.254.255.255', '172.21.230.255', '239.255.255.255'])
11490-
conf.route.resync()
11491+
conf.route.routes = bck_conf_route_routes
1149111492

1149211493
############
1149311494
############

0 commit comments

Comments
 (0)