Ruby Big IP Route Changer Class

Problem this snippet solves:

The BIGIPRouteChanger class will connect to two BIG-IPs and allows for changing routes on those two BIG-IPs. In our testing efforts, we change the network configurations between central and remote BIG-IPs and engage or disengage paired WANJets by changing the route table on the two BIG-IPs. This is useful in automating our testing strategy.

Important: This class must be called from within a Ruby program.

How to use this snippet:

Configuration

Edit the bigip-config.ylm and bigip2-config.ylm files to include the addresses and credentials for the two BIG-IPs.

Edit the NetRouteTable.WSDL and NetRouteTable2.WSDL, changing the 4th to last line changed to include the correct IP addresses for the two BIG-IPs.

Method

changeRouteBigIP1

Changes the route on BIG-IP 1. This method takes a destination IP, a net mask, and a gateway IP.

changeRouteBigIP1 < IP> < netmask> < gateway>

changeRouteBigIP2

Changes the route on BIG-IP 2. This method takes a destination IP, a net mask, and a gateway IP.

changeRouteBigIP2 < IP> < netmask> < gateway>

Code :

# ruby file missing
Published Mar 09, 2015
Version 1.0

Was this article helpful?

No CommentsBe the first to comment