@@ -121,7 +121,7 @@ def test_access_list(self):
121121
122122 self .cli_commit ()
123123
124- config = self .getFRRconfig ('access-list' , end = '' )
124+ config = self .getFRRconfig ('access-list' )
125125 for acl , acl_config in acls .items ():
126126 for rule , rule_config in acl_config ['rule' ].items ():
127127 tmp = f'access-list { acl } seq { rule } '
@@ -212,7 +212,7 @@ def test_access_list6(self):
212212
213213 self .cli_commit ()
214214
215- config = self .getFRRconfig ('ipv6 access-list' , end = '' )
215+ config = self .getFRRconfig ('ipv6 access-list' )
216216 for acl , acl_config in acls .items ():
217217 for rule , rule_config in acl_config ['rule' ].items ():
218218 tmp = f'ipv6 access-list { acl } seq { rule } '
@@ -310,7 +310,7 @@ def test_as_path_list(self):
310310
311311 self .cli_commit ()
312312
313- config = self .getFRRconfig ('bgp as-path access-list' , end = '' )
313+ config = self .getFRRconfig ('bgp as-path access-list' )
314314 for as_path , as_path_config in test_data .items ():
315315 if 'rule' not in as_path_config :
316316 continue
@@ -368,7 +368,7 @@ def test_community_list(self):
368368
369369 self .cli_commit ()
370370
371- config = self .getFRRconfig ('bgp community-list' , end = '' )
371+ config = self .getFRRconfig ('bgp community-list' )
372372 for comm_list , comm_list_config in test_data .items ():
373373 if 'rule' not in comm_list_config :
374374 continue
@@ -426,7 +426,7 @@ def test_extended_community_list(self):
426426
427427 self .cli_commit ()
428428
429- config = self .getFRRconfig ('bgp extcommunity-list' , end = '' )
429+ config = self .getFRRconfig ('bgp extcommunity-list' )
430430 for comm_list , comm_list_config in test_data .items ():
431431 if 'rule' not in comm_list_config :
432432 continue
@@ -491,7 +491,7 @@ def test_large_community_list(self):
491491
492492 self .cli_commit ()
493493
494- config = self .getFRRconfig ('bgp large-community-list' , end = '' )
494+ config = self .getFRRconfig ('bgp large-community-list' )
495495 for comm_list , comm_list_config in test_data .items ():
496496 if 'rule' not in comm_list_config :
497497 continue
@@ -569,7 +569,7 @@ def test_prefix_list(self):
569569
570570 self .cli_commit ()
571571
572- config = self .getFRRconfig ('ip prefix-list' , end = '' )
572+ config = self .getFRRconfig ('ip prefix-list' )
573573 for prefix_list , prefix_list_config in test_data .items ():
574574 if 'rule' not in prefix_list_config :
575575 continue
@@ -652,7 +652,7 @@ def test_prefix_list6(self):
652652
653653 self .cli_commit ()
654654
655- config = self .getFRRconfig ('ipv6 prefix-list' , end = '' )
655+ config = self .getFRRconfig ('ipv6 prefix-list' )
656656 for prefix_list , prefix_list_config in test_data .items ():
657657 if 'rule' not in prefix_list_config :
658658 continue
@@ -703,7 +703,7 @@ def test_prefix_list_duplicates(self):
703703
704704 self .cli_commit ()
705705
706- config = self .getFRRconfig ('ip prefix-list' , end = '' )
706+ config = self .getFRRconfig ('ip prefix-list' )
707707 for rule in test_range :
708708 tmp = f'ip prefix-list { prefix_list } seq { rule } permit { prefix } le { rule } '
709709 self .assertIn (tmp , config )
@@ -2002,7 +2002,7 @@ def test_frr_individual_remove_T6283_T6250(self):
20022002 local_preference = base_local_preference
20032003 table = base_table
20042004 for route_map in route_maps :
2005- config = self .getFRRconfig (f'route-map { route_map } permit { seq } ' , end = '' , endsection = '^exit' )
2005+ config = self .getFRRconfig (f'route-map { route_map } permit { seq } ' , stop_section = '^exit' )
20062006 self .assertIn (f' set local-preference { local_preference } ' , config )
20072007 self .assertIn (f' set table { table } ' , config )
20082008 local_preference += 20
@@ -2015,7 +2015,7 @@ def test_frr_individual_remove_T6283_T6250(self):
20152015
20162016 local_preference = base_local_preference
20172017 for route_map in route_maps :
2018- config = self .getFRRconfig (f'route-map { route_map } permit { seq } ' , end = '' , endsection = '^exit' )
2018+ config = self .getFRRconfig (f'route-map { route_map } permit { seq } ' , stop_section = '^exit' )
20192019 self .assertIn (f' set local-preference { local_preference } ' , config )
20202020 local_preference += 20
20212021
@@ -2029,7 +2029,7 @@ def test_frr_individual_remove_T6283_T6250(self):
20292029 self .cli_commit ()
20302030
20312031 for route_map in route_maps :
2032- config = self .getFRRconfig (f'route-map { route_map } permit { seq } ' , end = '' , endsection = '^exit' )
2032+ config = self .getFRRconfig (f'route-map { route_map } permit { seq } ' , stop_section = '^exit' )
20332033 self .assertIn (f' set as-path prepend { prepend } ' , config )
20342034
20352035 for route_map in route_maps :
@@ -2038,7 +2038,7 @@ def test_frr_individual_remove_T6283_T6250(self):
20382038 self .cli_commit ()
20392039
20402040 for route_map in route_maps :
2041- config = self .getFRRconfig (f'route-map { route_map } permit { seq } ' , end = '' , endsection = '^exit' )
2041+ config = self .getFRRconfig (f'route-map { route_map } permit { seq } ' , stop_section = '^exit' )
20422042 self .assertNotIn (f' set' , config )
20432043
20442044def sort_ip (output ):
0 commit comments