File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -489,14 +489,15 @@ def clean_objects(data_dict):
489
489
if api_type == 'simple-cluster' or api_type == 'simple-gateway' or 'service' in api_type :
490
490
for dependent_field in fields_to_exclude_due_to_value_of_other_fields :
491
491
if dependent_field in obj :
492
- # currently there's just 1 independent field; if there'll be more will need to add a 'break' if the
493
- # presence of any of the independent fields requires removal of the dependent field
492
+ # for each dependant field, in the presence of any of it's independent fields in the object with
493
+ # the same value as in the dict, the dependant field is removed
494
494
for independent_field in fields_to_exclude_due_to_value_of_other_fields [dependent_field ].keys ():
495
495
if independent_field in obj and obj [independent_field ] == fields_to_exclude_due_to_value_of_other_fields [dependent_field ][independent_field ]:
496
496
obj .pop (dependent_field , None )
497
497
debug_log ("The field " + dependent_field + " was removed from object of type " +
498
498
api_type + " named " + obj ["name" ] + " since it cannot be present when the "
499
499
"value of " + independent_field + " is " + str (obj [independent_field ]))
500
+ break
500
501
501
502
# converted_fields_to_add = {}
502
503
for field in list (obj ):
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def get_version(client):
26
26
if sys .version_info < (3 , 7 ):
27
27
raise Exception ("Min Python version required is 3.7" )
28
28
29
- arg_parser = argparse .ArgumentParser (description = "R80.X Policy Package Export/Import Tool, V6.2.1 " )
29
+ arg_parser = argparse .ArgumentParser (description = "R80.X Policy Package Export/Import Tool, V6.2.2 " )
30
30
args = process_arguments (arg_parser )
31
31
if args .force :
32
32
args .unsafe_auto_accept = True
Original file line number Diff line number Diff line change 984
984
"firewall-settings.memory-pool-size" : {
985
985
"firewall-settings.auto-calculate-connections-hash-table-size-and-memory-pool" : True },
986
986
"firewall-settings.maximum-memory-pool-size" : {
987
- "firewall-settings.auto-calculate-connections-hash-table-size-and-memory-pool" : True }
987
+ "firewall-settings.auto-calculate-connections-hash-table-size-and-memory-pool" : True },
988
+ "delayed-sync-value" : {"use-delayed-sync" : False , "sync-connections-on-cluster" : False }
988
989
}
989
990
990
991
# in cases where the request is a single value (e.g name) and the reply is the corresponding object, we wish to create
You can’t perform that action at this time.
0 commit comments