def __intermediate_interface(self, interface, uci_name):
interface.update({<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': uci_name,<EOL>'<STR_LIT>': interface.pop('<STR_LIT:name>')<EOL>})<EOL>if '<STR_LIT>' in interface:<EOL><INDENT>del interface['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in interface:<EOL><INDENT>if interface.get('<STR_LIT:type>') != '<STR_LIT>':<EOL><INDENT>interface['<STR_LIT>'] = interface['<STR_LIT>']<EOL><DEDENT>del interface['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in interface:<EOL><INDENT>interface['<STR_LIT>'] = interface['<STR_LIT>']<EOL>del interface['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in interface:<EOL><INDENT>interface['<STR_LIT>'] = not interface['<STR_LIT>']<EOL>del interface['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in interface:<EOL><INDENT>del interface['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in interface:<EOL><INDENT>del interface['<STR_LIT>']<EOL><DEDENT>return interface<EOL>
converts NetJSON interface to
UCI intermediate data structure