prefix to name objects
Hi Martin,
If I import an existing checkpoint config ( with --cpPortsFile and/or --cpNetObjFile), if exist an exact same object name it does not check if also the port, IP address, or network is exact the same. It uses the one already existent on checkpoint database. I have the same object name with different IP address from a previous import.
Probably to add this extra check will demand much time from you.
Is there a way to add a prefix to all object names created by your script?
thank you in advance,
Hi Martin, I think I found my answer on config.py:
WARN_PREFIX = '#[-] ' MSG_PREFIX = '#[+] ' NEW_NET_PREFIX = 'N_' NEW_HOST_PREFIX = 'H_' NEW_RANGE_PREFIX = 'R_' NEW_GROUP_PREFIX = 'G_' TCPUDP_PREFIX = 'TU_' TCP_PREFIX = 'TCP_' UDP_PREFIX = 'UDP_'
I will change it there. Maybe as a suggestion add a global parameter to add a prefix to all object names, this can be handy if importing more than one config to the same manager. It will also help identify the locality of the device you are adding.
thanks,
Good idea. We can keep the issue opened and mark it as a feature request.
Mart sent from my cellphone
On Apr 23, 2017 3:00 PM, "mjardeli" [email protected] wrote:
Hi Martin, I think I found my answer on config.py:
WARN_PREFIX = '#[-] ' MSG_PREFIX = '#[+] ' NEW_NET_PREFIX = 'N_' NEW_HOST_PREFIX = 'H_' NEW_RANGE_PREFIX = 'R_' NEW_GROUP_PREFIX = 'G_' TCPUDP_PREFIX = 'TU_' TCP_PREFIX = 'TCP_' UDP_PREFIX = 'UDP_'
I will change it there. Maybe as a suggestion add a global parameter to add a prefix to all object names, this can be handy if importing more than one config to the same manager. It will also help identify the locality of the device you are adding.
thanks,
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GoSecure/Cisco2Checkpoint/issues/7#issuecomment-296479806, or mute the thread https://github.com/notifications/unsubscribe-auth/AECtwrcra36MHU7kQJuwsSZbj09_2egyks5ry5-3gaJpZM4NFZ1Q .