question

ashokbth avatar image
ashokbth asked cnguyen edited

how to disable bgp neighbor in ixNetwork

Can someone help / provide any info how to enable/disable a BGP neighbor on ixnetwork using iTest?
iTestbgpixNetworkIxia
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

cnguyen avatar image
cnguyen answered cnguyen edited
Yes. we can use eval statement to do ixNetwork's tcl API In this case, the ixNetwork's tcl API should be as below: + get vport list: eval ixNet getList ::ixNet::OBJ-/ vport => Assumes the response: ::ixNet::OBJ-/vport:1 ::ixNet::OBJ-/vport:2 + Apply below statement to enable/disable BGP neighbor for each vport. eval ixNet setAttribute ::ixNet::OBJ-/vport:1/protocols/bgp/neighborRange -enabled true/false eval ixNet setAttribute ::ixNet::OBJ-/vport:2/protocols/bgp/neighborRange -enabled true/false Note: can check the set value by statement: eval ixNet getAttribute Hope this help!
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

EricGregMiller avatar image
EricGregMiller answered
iTest's IxNetwork integration does not have direct support for BGP configuration. However, you can use the "eval" statement to execute any tcl command, including commands that are part of IxNetwork's Tcl API.
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.