Below is the code:
my @ports = ( { port=>$dstTgPort, tx_preemphasis_main_tap=>15, tx_preemphasis_post_tap=>5 }, { port=>$srcTgPort, tx_preemphasis_main_tap=>15, tx_preemphasis_post_tap=>5 }, ); my $port = $rt->invoke("stc::get project1 -children-port"); my @hports= split(" ",$port); my $eth = $rt->invoke("stc::get $hports[0] -activephy"); print "$eth\n"; $rt->invoke ("stc::config $eth -detectionmode advanced -CfpInterface ACC_6069A"); my $eth = $rt->invoke("stc::get $hports[1] -activephy"); print "$eth\n"; $rt->invoke ("stc::config $eth -detectionmode advanced -CfpInterface ACC_6069A"); $rt->apply();