def openconfig_to_eos_af(value):
if "<STR_LIT::>" in value:<EOL><INDENT>value = value.split("<STR_LIT::>")[<NUM_LIT:1>]<EOL><DEDENT>mapd = {"<STR_LIT>": "<STR_LIT>", "<STR_LIT>": "<STR_LIT>"}<EOL>return mapd[value]<EOL>
Translate openconfig AF name to EOS AFI name.