#NEWLINE# def create_fp_dev( dev , sockpath , sockmode ) : #NEWLINE# #INDENT# if ( not device_exists ( dev ) ) : #NEWLINE# #INDENT# utils . execute ( 'fp-vdev' , 'add' , sockmode , '--sockpath' , sockpath , '--sockmode' , sockmode , run_as_root = True ) #NEWLINE# _set_device_mtu ( dev ) #NEWLINE# utils . execute ( 'ip' , 'link' , 'set' , dev , 'up' , run_as_root = True , check_exit_code = [ 0 , 2 , 254 ] )