MCPcopy Create free account
hub / github.com/mininet/mininet / setHostRoute

Method setHostRoute

mininet/node.py:538–542  ·  view source on GitHub ↗

Add route to host. ip: IP address as dotted decimal intf: string, interface name

( self, ip, intf )

Source from the content-addressed store, hash-verified

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.

Callers 1

Calls 1

cmdMethod · 0.95

Tested by

no test coverage detected