- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 10:37 PM
Hi Team,
I am trying to achieve physical connection naming convention.
Naming format would be : A-end equipmentname/slot/card/port-Z-end equipmentname/slot/card/port-Linktype
Naming convention rule has to be implemented when user creates an instance using change model/change request (Create physical connection)
Question here, at A-end interface and Z end interface we can only select port but will not come to know to which card and slot the selected port is associated. How to resolve this.
please help with logic and implementation.
Thanks
Vinay
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2024 02:57 PM
Hi @Vinay2509 ,
I dont think you need business rule. You can achieve this in below ways:
1) Update the sn_ni_core.TNIDefaultCINameUtils script or
2) Update/create extension points for sn_ni_core.TNIDefaultCINameUtils.
Option 2 is the best practice.
Here is how you can do that.
(these steps are provided assuming you dont have any customization on this script and you are using the OOB version of the script)
- search for Extension points in navigator. click on Scripted Extension Points
search for sn_ni_core.TNIDefaultCINameUtils
Open this record and update the code: here is the changes I have made to achieve what you wanted.
attaching the complete file for your reference.
Once the code is added, save the code and "create implementation"
Once that is done, you are good to test your changes.
Here is what mine looks like:
Let me know if this was helpful. Please mark this as resolved or let me know if any further help needed.
Thanks,
Aneesh D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 06:47 PM
Hi @Vinay2509 ,
If you are using the default naming patterns, then port name would ideally give the complete hierarchy from equipment->slot->card->port.
Now, regarding changing the default connection name. The default naming pattern is defined in the script include file: TNIDefaultCINameUtils
case TNIConstants.INV_CATEGORY.PHYSICAL_CONNECTION:
name = this.validateSiteCode(ciGr.site_a.clli_code).concat(SLASH).concat(this.validateSiteCode(ciGr.site_z.clli_code)).concat(SLASH).concat(ciGr.model_id.name).concat(SLASH).concat(number);
break;
you can override these defaults as per your requirement.
Thanks,
Aneesh D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2024 09:17 PM
@Aneesh-D Thanks for response!
Suggested naming format is : A-end equipmentname/slot/card/port-Z-end equipmentname/slot/card/port-Linktype
Can we use business rule on physical connection table and call script include? how things will work please help to understand.
Thanks
Vinay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2024 02:57 PM
Hi @Vinay2509 ,
I dont think you need business rule. You can achieve this in below ways:
1) Update the sn_ni_core.TNIDefaultCINameUtils script or
2) Update/create extension points for sn_ni_core.TNIDefaultCINameUtils.
Option 2 is the best practice.
Here is how you can do that.
(these steps are provided assuming you dont have any customization on this script and you are using the OOB version of the script)
- search for Extension points in navigator. click on Scripted Extension Points
search for sn_ni_core.TNIDefaultCINameUtils
Open this record and update the code: here is the changes I have made to achieve what you wanted.
attaching the complete file for your reference.
Once the code is added, save the code and "create implementation"
Once that is done, you are good to test your changes.
Here is what mine looks like:
Let me know if this was helpful. Please mark this as resolved or let me know if any further help needed.
Thanks,
Aneesh D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2024 10:38 PM
@Aneesh-D Thanks for your response and efforts!
I have doubt, how to fetch slot and port associated with physical naming part? we need slot and port and card & Linktype also in naming of physical connection.
A-end equipmentname/slot/card/port-Z-end equipmentname/slot/card/port-Linktype