This Page

serviceRouting — routing service

class serviceRouting.RoutingService

Provides access for adding/removing routes on the local system

addDirect(cidr, intf)

Add a route for a CIDR that is directly connected to an interface

addFake(nodename, cidr)

Assign a fake range of addresses to a single node from cidr

addLocal(cidr)

Add a local route redirect for the given CIDR, only works on Linux

addRoute(cidr, nexthop)

Add a route given the cidr and nexthop IP address

clear()

Clear all of the routes that we added to this node

delFake(nodename, cidr)

Remove the assigned fake range of addresses (cidr) from node

delRoute(cidr)

Checks to see if this is a route ‘we’ added in which case we use the cached remove command for clear(), otherwise we call the hidden delRoute

getFake(nodename)

Get the list of CIDR’s that are assigned as fake addresses for the node