code: def cli(env, identifier):
      
  
      mgr = SoftLayer.FirewallManager(env.client)
      firewall_type, firewall_id = firewall.parse_id(identifier)
  
      if not (env.skip_confirmations or
              formatting.confirm("This action will cancel a firewall from your "
                                 "account. Continue?")):
          raise exceptions.CLIAbort('Aborted.')
  
      if firewall_type in ['vs', 'server']:
          mgr.cancel_firewall(firewall_id, dedicated=False)
      elif firewall_type == 'vlan':
          mgr.cancel_firewall(firewall_id, dedicated=True)
      else:
          raise exceptions.CLIAbort('Unknown firewall type: %s' % firewall_type)
  
      env.fout('Firewall with id %s is being cancelled!' % identifier)
docs: Cancels a firewall.