Skip to content

Commit

Permalink
fbcode/openr/
Browse files Browse the repository at this point in the history
Reviewed By: shih-hao-tseng

Differential Revision: D68315158

fbshipit-source-id: 26225467761d24a978dafa595ea2cd8beb17df1e
  • Loading branch information
generatedunixname226714639793621 authored and facebook-github-bot committed Jan 17, 2025
1 parent c783442 commit 6f11173
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion configerator/structs/neteng/config/routing_policy.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ namespace py neteng.config.routing_policy
namespace go neteng.config.routing_policy
namespace py3 neteng.config

include "thrift/annotation/thrift.thrift"

enum Operator {
add = 1,
rewrite = 2,
Expand Down Expand Up @@ -274,7 +276,8 @@ struct FilterCriteria {
23: optional string bgpOrigin;
24: optional list<string> bgpPathFilters;
25: optional string bgpPath;
26: optional list<string> bgpPrefixFilters (deprecated);
@thrift.DeprecatedUnvalidatedAnnotations{items = {"deprecated": "1"}}
26: optional list<string> bgpPrefixFilters;

// openr (index range 40:)
40: optional list<string> openrTags;
Expand Down
3 changes: 2 additions & 1 deletion openr/if/OpenrConfig.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ struct SparkConfig {
* SparkHeartbeatMsg are used to detect if neighbor is up running when
* adjacency is established.
*/
4: i32 keepalive_time_s = 2 (deprecated);
@thrift.DeprecatedUnvalidatedAnnotations{items = {"deprecated": "1"}}
4: i32 keepalive_time_s = 2;

/**
* Expiration time if node does NOT receive ‘keepAlive’ info from neighbor node.
Expand Down
4 changes: 3 additions & 1 deletion openr/if/Types.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ include "openr/if/Network.thrift"
include "openr/if/OpenrConfig.thrift"
include "thrift/annotation/cpp.thrift"
include "thrift/annotation/hack.thrift"
include "thrift/annotation/thrift.thrift"

/**
* [Drain state]
Expand Down Expand Up @@ -365,7 +366,8 @@ struct PrefixEntry {
* Indicates the type of prefix. This have no use except to indicate the
* source of origination. e.g. Interface route, BGP route etc.
*/
2: Network.PrefixType type (deprecated);
@thrift.DeprecatedUnvalidatedAnnotations{items = {"deprecated": "1"}}
2: Network.PrefixType type;

/**
* Default mode of forwarding for prefix is IP. If `forwardingType` is
Expand Down

0 comments on commit 6f11173

Please sign in to comment.