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è)正則,用python讀取keepalived.conf,謝謝
慕運(yùn)維8079593
2019-07-28 12:52:52