summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test
diff options
context:
space:
mode:
Diffstat (limited to 'test/scenario_test')
-rw-r--r--test/scenario_test/global_policy_test.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/scenario_test/global_policy_test.py b/test/scenario_test/global_policy_test.py
index 0d1e1ba9..634bf233 100644
--- a/test/scenario_test/global_policy_test.py
+++ b/test/scenario_test/global_policy_test.py
@@ -263,6 +263,17 @@ class GoBGPTestBase(unittest.TestCase):
self.assertTrue(path['med'] == 100)
self.assertTrue(path['local-pref'] == 100)
+ def test_18_reject_policy(self):
+ self.gobgp.local('gobgp global policy import set default reject')
+ self.gobgp.local('gobgp neighbor all softresetin')
+
+ time.sleep(1)
+
+ # self-generated routes remain since softresetin doesn't re-evaluate
+ # them
+ for v in self.gobgp.get_global_rib():
+ for p in v['paths']:
+ self.assertTrue(p['nexthop'] == '0.0.0.0')
if __name__ == '__main__':