dfex/address-globaliser

not rename the "address-book"

Opened this issue · 0 comments

The script is overwriting the address instead of renaming it to a new name:

Original config:
set security zones security-zone trust address-book address test1_address_book1 192.168.50.0/24
set security zones security-zone untrust address-book address test1_address_book1 10.222.0.0/16

Policy: test2, action-type: permit, State: enabled, Index: 17, Scope Policy: 0
Policy Type: Configured
Sequence number: 3
From zone: trust, To zone: untrust
Source addresses:
test1_address_book1: 192.168.50.0/24 >>>>>>>>>
Destination addresses:
test1_address_book1: 10.222.0.0/16 >>>>>>>>
Application: any
IP protocol: 0, ALG: 0, Inactivity timeout: 0
Source port range: [0-0]
Destination port range: [0-0]
Per policy TCP Options: SYN check: No, SEQ check: No
Session log: at-create

AFTER script:
set security address-book global address test1_address_book1 10.222.0.0/16

Policy: test2, action-type: permit, State: enabled, Index: 17, Scope Policy: 0
Policy Type: Configured
Sequence number: 3
From zone: trust, To zone: untrust
Source addresses:
test1_address_book1(global): 10.222.0.0/16 >>>>>>>
Destination addresses:
test1_address_book1(global): 10.222.0.0/16 >>>>>>>
Application: any
IP protocol: 0, ALG: 0, Inactivity timeout: 0
Source port range: [0-0]
Destination port range: [0-0]
Per policy TCP Options: SYN check: No, SEQ check: No
Session log: at-create