def _prefix_from_opts(opts):
p = Prefix()<EOL>p.prefix = opts.get('<STR_LIT>')<EOL>p.type = opts.get('<STR_LIT:type>')<EOL>p.description = opts.get('<STR_LIT:description>')<EOL>p.node = opts.get('<STR_LIT>')<EOL>p.country = opts.get('<STR_LIT>')<EOL>p.order_id = opts.get('<STR_LIT>')<EOL>p.customer_id = opts.get('<STR_LIT>')<EOL>p.alarm_priority = opts.get('<STR_LIT>')<EOL>p.comment = opts.get('<STR_LIT>')<EOL>p.monitor = _str_to_bool(opts.get('<STR_LIT>'))<EOL>p.vlan = opts.get('<STR_LIT>')<EOL>p.status = opts.get('<STR_LIT:status>') or '<STR_LIT>' <EOL>p.tags = list(csv.reader([opts.get('<STR_LIT>', '<STR_LIT>')], escapechar='<STR_LIT:\\>'))[<NUM_LIT:0>]<EOL>p.expires = opts.get('<STR_LIT>')<EOL>return p<EOL>
Return a prefix based on options passed from command line

        Used by add_prefix() and add_prefix_from_pool() to avoid duplicate
        parsing