<s> from oslo_config import cfg <EOL> GROUP_NAME = '<STR_LIT>' <EOL> spice_opt_group = cfg . OptGroup ( GROUP_NAME ) <EOL> enabled_opt = cfg . BoolOpt ( '<STR_LIT>' , <EOL> default = False , <EOL> help = """<STR_LIT>""" ) <EOL> agent_enabled_opt = cfg . BoolOpt ( '<STR_LIT>' , <EOL> default = True , <EOL> help = """<STR_LIT>""" ) <EOL> html5proxy_base_url_opt = cfg . StrOpt ( '<STR_LIT>' , <EOL> default = '<STR_LIT>' , <EOL> help = """<STR_LIT>""" ) <EOL> html5proxy_host_opt = cfg . StrOpt ( '<STR_LIT>' , <EOL> default = '<STR_LIT>' , <EOL> help = """<STR_LIT>""" ) <EOL> html5proxy_port_opt = cfg . IntOpt ( '<STR_LIT>' , <EOL> default = <NUM_LIT> , <EOL> min = <NUM_LIT:1> , <EOL> max = <NUM_LIT> , <EOL> help = """<STR_LIT>""" ) <EOL> server_listen_opt = cfg . StrOpt ( '<STR_LIT>' , <EOL> default = '<STR_LIT:127.0.0.1>' , <EOL> help = """<STR_LIT>""" ) <EOL> server_proxyclient_address_opt = cfg . StrOpt ( '<STR_LIT>' , <EOL> default = '<STR_LIT:127.0.0.1>' , <EOL> help = """<STR_LIT>""" ) <EOL> keymap_opt = cfg . StrOpt ( '<STR_LIT>' , <EOL> default = '<STR_LIT>' , <EOL> help = """<STR_LIT>""" ) <EOL> ALL_OPTS = [ html5proxy_base_url_opt , <EOL> server_listen_opt , <EOL> server_proxyclient_address_opt , <EOL> enabled_opt , <EOL> agent_enabled_opt , <EOL> keymap_opt , <EOL> html5proxy_host_opt , <EOL> html5proxy_port_opt ] <EOL> CLI_OPTS = [ html5proxy_host_opt , <EOL> html5proxy_port_opt ] <EOL> def register_opts ( conf ) : <EOL> conf . register_opts ( ALL_OPTS , group = spice_opt_group ) <EOL> def register_cli_opts ( conf ) : <EOL> conf . register_cli_opts ( CLI_OPTS , group = spice_opt_group ) <EOL> def list_opts ( ) : <EOL> return { spice_opt_group : ALL_OPTS } </s>
