def _expand_interface_name(self, interface_brief):
if self.interface_map.get(interface_brief):<EOL><INDENT>return self.interface_map.get(interface_brief)<EOL><DEDENT>command = '<STR_LIT>'.format(interface_brief)<EOL>output = self._send_command(command)<EOL>first_line = output.splitlines()[<NUM_LIT:0>]<EOL>if '<STR_LIT>' in first_line:<EOL><INDENT>full_int_name = first_line.split()[<NUM_LIT:0>]<EOL>self.interface_map[interface_brief] = full_int_name<EOL>return self.interface_map.get(interface_brief)<EOL><DEDENT>else:<EOL><INDENT>return interface_brief<EOL><DEDENT>
Obtain the full interface name from the abbreviated name.

Cache mappings in self.interface_map.