Add route to host. ip: IP address as dotted decimal intf: string, interface name
( self, ip, intf )
| 536 | return result |
| 537 | |
| 538 | def setHostRoute( self, ip, intf ): |
| 539 | """Add route to host. |
| 540 | ip: IP address as dotted decimal |
| 541 | intf: string, interface name""" |
| 542 | return self.cmd( 'route add -host', ip, 'dev', intf ) |
| 543 | |
| 544 | def setDefaultRoute( self, intf=None ): |
| 545 | """Set the default route to go through intf. |
no test coverage detected