def get_all_run_phy_intf():
intf_list = []<EOL>base_dir = '<STR_LIT>'<EOL>dir_exist = os.path.exists(base_dir)<EOL>if not dir_exist:<EOL><INDENT>LOG.error("<STR_LIT>"<EOL>"<STR_LIT>", base_dir)<EOL>return intf_list<EOL><DEDENT>dir_cont = os.listdir(base_dir)<EOL>for subdir in dir_cont:<EOL><INDENT>dev_dir = base_dir + '<STR_LIT:/>' + subdir + '<STR_LIT:/>' + '<STR_LIT>'<EOL>dev_exist = os.path.exists(dev_dir)<EOL>if dev_exist:<EOL><INDENT>oper_state = is_intf_up(subdir)<EOL>if oper_state is True:<EOL><INDENT>intf_list.append(subdir)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>LOG.info("<STR_LIT>",<EOL>dev_dir)<EOL><DEDENT><DEDENT>return intf_list<EOL>
Retrieve all physical interfaces that are operationally up.