def _inject_net_into_fs(net, fs):
 LOG.debug((_('Inject key fs=%(fs)s net=%(net)s') % locals()))
 netdir = os.path.join('etc', 'network')
 fs.make_path(netdir)
 fs.set_ownership(netdir, 'root', 'root')
 fs.set_permissions(netdir, 484)
 netfile = os.path.join('etc', 'network', 'interfaces')
 _inject_file_into_fs(fs, netfile, net)

def _inject_net_into_fs ( net , fs ) : LOG . debug ( ( _ ( 'Inject key fs=%(fs)s net=%(net)s' ) % locals ( ) ) ) netdir = os . path . join ( 'etc' , 'network' ) fs . make_path ( netdir ) fs . set_ownership ( netdir , 'root' , 'root' ) fs . set_permissions ( netdir , 484 ) netfile = os . path . join ( 'etc' , 'network' , 'interfaces' ) _inject_file_into_fs ( fs , netfile , net )
inject /etc/network/interfaces into the filesystem rooted at fs .