Commit Graph

16 Commits

Author SHA1 Message Date
generatedunixname226714639793621
600c351dde fbcode/fboss/
Reviewed By: vitaut

Differential Revision: D46070319

fbshipit-source-id: bc6092c8bde6fb255b0c6f4e45f8e418c9b742a9
2023-05-30 08:13:14 -07:00
Srikrishna Gopu
7032f601f3 Back out "fbcode/fboss/"
Summary:
Original commit changeset: d040ce0e23b2

Original Phabricator Diff: D45689430

Reviewed By: harshitgulati18

Differential Revision: D46052623

fbshipit-source-id: 56fb9d76496080c0a867e8c05cedf079e4ede798
2023-05-21 10:05:07 -07:00
generatedunixname226714639793621
11576eb893 fbcode/fboss/
Reviewed By: iahs

Differential Revision: D45689430

fbshipit-source-id: d040ce0e23b2f8e13c3c25e5c3728cb203f0f617
2023-05-16 11:05:27 -07:00
Siva Muthusamy
5300b0b9bb Back out "fbcode/fboss/common/"
Summary:
Original commit changeset: 9d12716a4f3d

Original Phabricator Diff: D44835399.

File thrift/annotation/cpp.thrift is not available in open source and hence OSS build fails. Will work with thrift team to fix this properly.

Reviewed By: zechengh09

Differential Revision: D45297819

fbshipit-source-id: 0bdf2f3893f9069f34707ea897c2fa8c458a704f
2023-04-25 21:31:34 -07:00
generatedunixname226714639793621
46a4f76615 fbcode/fboss/common/
Reviewed By: avalonalex

Differential Revision: D44835399

fbshipit-source-id: 9d12716a4f3da2258b956dc57cdb20f28a1e0ba7
2023-04-18 22:10:23 -07:00
Siva Muthusamy
5f2bfb7d0e Add NetworkUtil stub function to fix FBOSS OSS build
Summary: Add NetworkUtil stub function to fix FBOSS OSS build

Reviewed By: daiwei1983

Differential Revision: D43750342

fbshipit-source-id: 4988c7ed9e6e170a46fc3dc7ec6a8313b6fa4fe4
2023-03-02 15:07:20 -08:00
Peyman Gardideh
118f6a2d64 Add conversions for thrift::IPPrefix<>folly::CIDRNetwork
Summary: Planning on using thrift::IPPrefix as the thrift rep of folly::CIDRNetwork, similar to how we use BinaryAddress for folly::IPAddress. Adding conversions accordingly

Reviewed By: zechengh09

Differential Revision: D37901477

fbshipit-source-id: 78997131b5fb966d0b5b603202d50d61d09bd099
2022-07-28 13:37:09 -07:00
Shashank Chaudhry
2470aca668 Enable CLANGFORMAT
Reviewed By: zertosh

Differential Revision: D31877653

fbshipit-source-id: 91f2e6c8b83dc7da1eb8a071b84fb0b03ec4ac54
2021-10-24 20:46:16 -07:00
Jasmeet Bagga
da821dcc9c Opt fboss into auto thrift format
Summary:
We are already enrolled in clang-autoformat, but not in
thrift auto format. Enable that now, so we can let linters worry about
formatting our code.

Reviewed By: phshaikh

Differential Revision: D30905313

fbshipit-source-id: bb4724cc11c455b23305e120ddcf22a3df0125b8
2021-09-14 09:16:13 -07:00
Midhun Somasundaran
00bcea3aa4 MultiNode test - Add local and remote link event test cases
Summary: Add test cases to verify LACP behavior with local and remote link down events. For triggering remote link events, a thrift client is used.

Differential Revision: D26329897

fbshipit-source-id: fa1bdfe6df80cab77731ec6e6f21aa826aca3e7f
2021-02-19 08:17:15 -08:00
Yedidya Feldblum
0e620ade4d Cut D support from assorted .thrift files
Summary: Cut D support from assorted .thrift files.

Reviewed By: simpkins, markisaa, GirasoleY

Differential Revision: D15492500

fbshipit-source-id: 68c7fb4ff6c8917be0db961c7bdaa62a75f1b300
2019-05-29 02:32:16 -07:00
Adam Simpkins
1cdee770a5 update copyright headers in some of the common/ stub headers
Summary: Update copyright messages to match the patterns expected by our open source linters.

Reviewed By: chadaustin

Differential Revision: D15105843

fbshipit-source-id: 6c66b4e3a552f9d71e6b43f9a5e6fcda48fd00d9
2019-04-26 14:38:28 -07:00
Rob Sherwood
4c3ea3f14d Completely redo CMakeFiles.txt and getdeps.sh for new thrift
Summary:
Should make OSS build again :-(
Closes https://github.com/facebook/fboss/pull/57

Reviewed By: eduardo-elizondo

Differential Revision: D6048266

Pulled By: capveg

fbshipit-source-id: 005a9f5b2c0aa21abfcd4932b16e8ef062bb7eb0
2017-10-17 00:35:03 -07:00
Saif Hasan
d792d1607c Do not set default value for ifName
Summary:
Setting default value to empty causes trouble on server if client is old as
server will think that value is set to empty and it tries to parse empty value.

This field is not being used anywhere except in `openr` for now and openr is
fully compatible with this change. Not setting default value will give us as
`__isset.ifName` to `false` instead of being empty string, which is desired
behaviour.

(Note: this ignores all push blocking failures!)

Reviewed By: anantdeepak

Differential Revision: D4934119

fbshipit-source-id: 4dd2e9307c659f1b6ccaf583964efa8df6041d24
2017-04-21 22:49:35 -07:00
Saif Hasan
a03676f7fb Add ifName field to BinaryAddress
Summary:
We are using `BinaryAddress` heavily within fboss codebase to represent a
nexthop as well as an IPAddres in wire format. Nexthops will need to have
a scoping identifier (iface name) for link-local address inorder to resolve
it properly.

We do this in OpenR and well tested on Arista. This seems bit hacky but it
saves a lot of time. In future we would like to have separate network util for
fboss and openr and we can get rid of this hack at that time.

Differential Revision: D4710768

fbshipit-source-id: 72092935f3738b3fb88a422462d1c995cc0acf18
2017-03-17 17:13:20 -07:00
Adam Simpkins
7f58caffe4 Add fb303 stubs in common/ to support building in the opensource repo
Summary:
This adds a common/ directory with stub files required for building
eden.  These stubs are the same ones as used in the fboss repository:
https://github.com/facebook/fboss/

Our goal is to eventually create an opensource fb303 repository with
complete implementations of these files, but for now these basic stubs
allow building eden.  (Most of the underlying stats code that supports
fb303 is already available in folly/stats/ in the folly repository.)

Test Plan:
Tested building eden on Ubuntu 16.04
2017-03-17 17:08:05 -07:00