lib/wire/commands/verify_command.rb
# run verification for given +zone_name+:
# - check if bridges exist for all networks in
#   this zone
run verification for given +zone_name+:
check if bridges exist for all networks in
this zone
run verification for given + zone_name + : check if bridges exist for all networks in this zone
def run_on_zone(zone_name)
      networks = @project.get_element('networks')
      b_verify_ok = true
      networks_in_zone = networks.select do |_, network_data|
        network_data[:zone] == zone_name
      end
      b_verify_ok = false unless verify_networks(networks_in_zone, zone_name)
      appgroups_in_zone = objects_in_zone('appgroups', zone_name)
      b_verify_ok = false unless verify_appgroups(appgroups_in_zone, zone_name)
      b_verify_ok
    end
def run_on_zone ( zone_name ) networks = @project . get_element ( 'networks' ) b_verify_ok = true networks_in_zone = networks . select do | _ , network_data | network_data [ :zone ] == zone_name end b_verify_ok = false unless verify_networks ( networks_in_zone , zone_name ) appgroups_in_zone = objects_in_zone ( 'appgroups' , zone_name ) b_verify_ok = false unless verify_appgroups ( appgroups_in_zone , zone_name ) b_verify_ok end
run verification for given +zone_name+:
 check if bridges exist for all networks in
this zone
run verification for given + zone_name + : check if bridges exist for all networks in this zone
# select networks in current zone only # verify these networks # select appgroups in this zone and verify them
zone_name
<not_specific>