Skip to content

Commit

Permalink
Merge pull request #273 from sebageek/add-description-to-bgp-peer-con…
Browse files Browse the repository at this point in the history
…fig-and-api

Add description field to PeerConfig and BGP API
  • Loading branch information
BarbarossaTM authored May 26, 2020
2 parents bfe8627 + c6f64ea commit 52c6591
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 32 deletions.
71 changes: 40 additions & 31 deletions protocols/bgp/api/session.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion protocols/bgp/api/session.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ message Session {
State status = 5;
SessionStats stats = 6;
uint64 established_since = 7;
string description = 8;
}

message SessionStats {
Expand All @@ -31,4 +32,4 @@ message SessionStats {
uint64 routes_received = 4;
uint64 routes_imported = 5;
uint64 routes_exported = 6;
}
}
1 change: 1 addition & 0 deletions protocols/bgp/server/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ type PeerConfig struct {
IPv4 *AddressFamilyConfig
IPv6 *AddressFamilyConfig
VRF *vrf.VRF
Description string
}

// AddressFamilyConfig represents all configuration parameters specific for an address family
Expand Down

0 comments on commit 52c6591

Please sign in to comment.