Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,102 @@ add_fbthrift_cpp_library(
fboss/lib/i2c/i2c_controller_stats.thrift
)

# BGP thrift files
# Configerator BGP policy thrift files
add_fbthrift_cpp_library(
cfgr_bgp_attr_cpp2
configerator/structs/neteng/fboss/bgp/if/bgp_attr.thrift
OPTIONS
json
reflection
)

add_fbthrift_cpp_library(
cfgr_nsf_policy_cpp2
configerator/structs/neteng/bgp_policy/thrift/nsf_policy.thrift
OPTIONS
json
reflection
)

add_fbthrift_cpp_library(
cfgr_routing_policy_cpp2
configerator/structs/neteng/bgp_policy/thrift/routing_policy.thrift
OPTIONS
json
reflection
)

add_fbthrift_cpp_library(
cfgr_bgp_policy_cpp2
configerator/structs/neteng/bgp_policy/thrift/bgp_policy.thrift
OPTIONS
json
reflection
DEPENDS
cfgr_nsf_policy_cpp2
cfgr_routing_policy_cpp2
)

add_fbthrift_cpp_library(
cfgr_rib_policy_cpp2
configerator/structs/neteng/bgp_policy/thrift/rib_policy.thrift
OPTIONS
json
reflection
DEPENDS
cfgr_bgp_attr_cpp2
cfgr_bgp_policy_cpp2
cfgr_routing_policy_cpp2
)

add_fbthrift_cpp_library(
bgp_config_cpp2
configerator/structs/neteng/fboss/bgp/bgp_config.thrift
OPTIONS
json
reflection
DEPENDS
cfgr_bgp_attr_cpp2
cfgr_bgp_policy_cpp2
)

add_fbthrift_cpp_library(
policy_thrift_cpp2
fboss/routing/policy/if/policy_thrift.thrift
OPTIONS
json
reflection
)

add_fbthrift_cpp_library(
bgp_thrift_cpp2
fboss/bgp/if/bgp_thrift.thrift
SERVICES
TBgpService
OPTIONS
json
reflection
DEPENDS
cfgr_bgp_attr_cpp2
bgp_config_cpp2
cfgr_bgp_policy_cpp2
cfgr_rib_policy_cpp2
cfgr_routing_policy_cpp2
policy_thrift_cpp2
fb303_cpp2
)

add_fbthrift_cpp_library(
bgp_summary_cpp2
fboss/cli/fboss2/commands/show/bgp/summary/bgp_summary.thrift
OPTIONS
json
reflection
DEPENDS
bgp_thrift_cpp2
)

add_fbthrift_cpp_library(
io_stats_cpp2
fboss/lib/if/io_stats.thrift
Expand Down
21 changes: 21 additions & 0 deletions fboss/bgp/if/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library")

oncall("fboss_agent_push")

thrift_library(
name = "bgp_thrift",
languages = [
"cpp2",
],
thrift_cpp2_options = "json",
thrift_srcs = {"bgp_thrift.thrift": []},
deps = [
"//common/fb303/if:fb303",
"//configerator/structs/neteng/bgp_policy/thrift:bgp_policy",
"//configerator/structs/neteng/bgp_policy/thrift:rib_policy",
"//configerator/structs/neteng/bgp_policy/thrift:routing_policy",
"//configerator/structs/neteng/fboss/bgp:bgp_config",
"//configerator/structs/neteng/fboss/bgp/if:bgp_attr",
"//fboss/routing/policy/if:policy",
],
)
Loading
Loading