<s> """<STR_LIT>""" <EOL> import click <EOL> import SoftLayer <EOL> from SoftLayer . CLI import environment <EOL> from SoftLayer . CLI import exceptions <EOL> from SoftLayer . CLI import firewall <EOL> from SoftLayer . CLI import formatting <EOL> @ click . command ( ) <EOL> @ click . argument ( '<STR_LIT>' ) <EOL> @ environment . pass_env <EOL> def cli ( env , identifier ) : <EOL> """<STR_LIT>""" <EOL> mgr = SoftLayer . FirewallManager ( env . client ) <EOL> firewall_type , firewall_id = firewall . parse_id ( identifier ) <EOL> if not ( env . skip_confirmations or <EOL> formatting . confirm ( "<STR_LIT>" <EOL> "<STR_LIT>" ) ) : <EOL> raise exceptions . CLIAbort ( '<STR_LIT>' ) <EOL> if firewall_type in [ '<STR_LIT>' , '<STR_LIT>' ] : <EOL> mgr . cancel_firewall ( firewall_id , dedicated = False ) <EOL> elif firewall_type == '<STR_LIT>' : <EOL> mgr . cancel_firewall ( firewall_id , dedicated = True ) <EOL> else : <EOL> raise exceptions . CLIAbort ( '<STR_LIT>' % firewall_type ) <EOL> env . fout ( '<STR_LIT>' % identifier ) </s>
