Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Name: Link to IP Network
- Table: Network Adapter [cmdb_ci_network_adapter]
- When: after
- Insert: true
- Update: true
- Condition: current.ip_address.changes()
- */
- linkSubnet();
- function linkSubnet() {
- var su = new SubnetUtil();
- var matchedSubnet = su.inSubnet(current.ip_address);
- if(matchedSubnet != null) {
- current.u_subnet = matchedSubnet;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment