def __init__(self, cfg):
self.drvr_obj = {}<EOL>self.mgmt_ip_list = cfg.firewall.fw_mgmt_ip<EOL>self.mgmt_ip_list = self.mgmt_ip_list.strip('<STR_LIT:[>').rstrip('<STR_LIT:]>').split('<STR_LIT:U+002C>')<EOL>self.user_list = cfg.firewall.fw_username<EOL>if self.user_list:<EOL><INDENT>self.user_list = self.user_list.strip('<STR_LIT:[>').rstrip('<STR_LIT:]>').split('<STR_LIT:U+002C>')<EOL><DEDENT>self.pwd_list = cfg.firewall.fw_password<EOL>if self.pwd_list:<EOL><INDENT>self.pwd_list = self.pwd_list.strip('<STR_LIT:[>').rstrip('<STR_LIT:]>').split('<STR_LIT:U+002C>')<EOL><DEDENT>self.interface_in_list = cfg.firewall.fw_interface_in<EOL>if self.interface_in_list:<EOL><INDENT>self.interface_in_list = self.interface_in_list.strip('<STR_LIT:[>').rstrip('<STR_LIT:]>').split('<STR_LIT:U+002C>')<EOL><DEDENT>self.interface_out_list = cfg.firewall.fw_interface_out<EOL>if self.interface_out_list:<EOL><INDENT>self.interface_out_list = self.interface_out_list.strip('<STR_LIT:[>').rstrip('<STR_LIT:]>').split('<STR_LIT:U+002C>')<EOL><DEDENT>self.obj_dict = dict()<EOL>cnt = <NUM_LIT:0><EOL>dev = cfg.firewall.device<EOL>for ip in self.mgmt_ip_list:<EOL><INDENT>ip = ip.strip()<EOL>obj = dev_mgr_plug.DeviceMgr(cfg, dev)<EOL>self.obj_dict[ip] = dict()<EOL>self.obj_dict[ip]['<STR_LIT>'] = obj.get_drvr_obj()<EOL>self.obj_dict[ip]['<STR_LIT>'] = cfg.firewall.device.split('<STR_LIT:U+002C>')[cnt]<EOL>cnt = cnt + <NUM_LIT:1><EOL><DEDENT>self.drvr_initialize(cfg)<EOL>if cfg.firewall.sched_policy == fw_const.SCHED_POLICY:<EOL><INDENT>self.sched_obj = MaxSched(self.obj_dict)<EOL><DEDENT>
Initialization.