Ejemplo n.º 1
0
    def get_route_db(self):

        req_msg = fib_types.FibRequest(fib_types.FibCommand.ROUTE_DB_GET)
        self._fib_cmd_socket.send_thrift_obj(req_msg)
        return self._fib_cmd_socket.recv_thrift_obj(fib_types.RouteDatabase)
Ejemplo n.º 2
0
 def view_fib(self):
     req_msg = fib_types.FibRequest(fib_types.FibCommand.PERF_DB_GET)
     self._fib_cmd_socket.send_thrift_obj(req_msg)
     return self._fib_cmd_socket.recv_thrift_obj(fib_types.PerfDatabase)
Ejemplo n.º 3
0
 def view_fib(self):
     req_msg = fib_types.FibRequest(fib_types.FibCommand.PERF_DB_GET)
     return self.send_and_recv_thrift_obj(req_msg, fib_types.PerfDatabase)
Ejemplo n.º 4
0
 def get_route_db(self):
     req_msg = fib_types.FibRequest(fib_types.FibCommand.ROUTE_DB_GET)
     return self.send_and_recv_thrift_obj(req_msg, fib_types.RouteDatabase)