global_defs{notification_email{acassen}#notification_email_fromAlexandre.Cassen@firewall.loc#smtp_server192.168.200.1#smtp_connect_timeout30router_idLVS_DEVEL}這種的配置文件,無(wú)視掉global_defs怎么把里面的內(nèi)容用正則匹配成key:value的形式呢?比如{'notification_email':'{\nacassen\n}\n,'router_id':'LVS_DEVEL'}這種
有大佬遇到過這個(gè)問題嗎:求一個(gè)正則,用python讀取keepalived.conf,謝謝
躍然一笑
2019-08-06 00:07:33