def ApplyTrafficPy(): print "\nApplyTrafficPy ..." traffic = ixNet.getRoot()+'/traffic' status = ixNet.execute('apply', traffic)