global_defs{notification_email{acassen}#notification_email_fromAlexandre.Cassen@firewall.loc#smtp_server192.168.200.1#smtp_connect_timeout30router_idLVS_DEVEL}這種的配置文件,無視掉global_defs怎么把里面的內(nèi)容用正則匹配成key:value的形式呢?比如{'notification_email':'{\nacassen\n}\n,'router_id':'LVS_DEVEL'}這種
萌新求教!求一個正則,用python讀取keepalived.conf,謝謝萬分感謝
梵蒂岡之花
2019-07-26 23:56:46