core/rails/app/models/barclamp_dhcp/mgmt_service.rb
# Event hook that will be called every time a network is saved if any attributes changed.
# Roles that are interested in watching networks to see what has changed should
# implement this hook.
#
# This does not include IP allocation/deallocation.
Event hook that will be called every time a network is saved if any attributes changed.
Roles that are interested in watching networks to see what has changed should
implement this hook.

This does not include IP allocation/deallocation.
Event hook that will be called every time a network is saved if any attributes changed . Roles that are interested in watching networks to see what has changed should implement this hook . This does not include IP allocation / deallocation .
def on_network_change(obj)
    network = obj
    network = obj.network if obj.class == NetworkRange
    network = obj.network if obj.class == NetworkRouter
    build_network(network)
  end
def on_network_change ( obj ) network = obj network = obj . network if obj . class == NetworkRange network = obj . network if obj . class == NetworkRouter build_network ( network ) end
Event hook that will be called every time a network is saved if any attributes changed.
Event hook that will be called every time a network is saved if any attributes changed .
obj
<not_specific>