Skip to content

Commit

Permalink
add egress integration, decision publication -> ribout
Browse files Browse the repository at this point in the history
Summary: as title

Differential Revision: D15246174

fbshipit-source-id: 6d0467024e55edd05a77aebf435491e9154a0dc3
  • Loading branch information
Jingyi Yang authored and facebook-github-bot committed Jun 10, 2019
1 parent 3b8ac3e commit 1ea9c63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions openr/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ namespace {
//

// the URL for Decision module
const DecisionPubUrl kDecisionPubUrl{"inproc://decision_server_pub"};
const DecisionPubUrl kDecisionPubUrl{"ipc:///tmp/decision-pub-url"};

// the URL Prefix for the ConfigStore module
const PersistentStoreUrl kConfigStoreUrl{"ipc:///tmp/openr_config_store_cmd"};
Expand Down Expand Up @@ -827,7 +827,8 @@ main(int argc, char** argv) {

// Call external module for platform specific implementations
if (FLAGS_enable_plugin) {
pluginStart(PluginArgs{context, prefixManagerLocalCmdUrl});
pluginStart(PluginArgs{
FLAGS_node_name, context, prefixManagerLocalCmdUrl, kDecisionPubUrl});
}

// Wait for main-event loop to return
Expand Down
4 changes: 3 additions & 1 deletion openr/plugin/Plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
#pragma once

#include <fbzmq/zmq/Zmq.h>
#include "openr/common/Types.h"
#include <openr/common/Types.h>

namespace openr {
struct PluginArgs {
std::string myNodeName;
fbzmq::Context& zmqContext;
PrefixManagerLocalCmdUrl prefixManagerUrl;
DecisionPubUrl decisionPubUrl;
};

void pluginStart(const PluginArgs& pluginArgs);
Expand Down

0 comments on commit 1ea9c63

Please sign in to comment.