- container rpc-registry {
- uses config:service-ref {
- refine type {
- mandatory false;
- config:required-identity mdsb:binding-rpc-registry;
- }
- }
- }
- }
- }
-
- grouping message-state {
- leaf count {
- description "Total number of BGP messages.";
- type uint32;
- default 0;
- }
-
- leaf timestamp {
- description "The BGP message timestamp (seconds).";
- type uint32;
- default 0;
- }
- }
-
- grouping message-stats {
- container received {
- description "The received BGP messages statistics.";
- uses message-state;
- }
-
- container sent {
- description "The sent BGP messages statistics.";
- uses message-state;
- }
- }
-
- grouping error {
- leaf code {
- description "The BGP error code.";
- type uint8;
- default 0;
- }
-
- leaf sub-code {
- description "The BGP error sub-code.";
- type uint8;
- default 0;
- }
- }
-
- grouping afi-safi {
- leaf afi {
- description "Address Family Identifier.";
- type string;
- default "";
- }
- leaf safi {
- description "Subsequent Address Family Identifier.";
- type string;
- default "";
- }
- }
-
- grouping preferences {
- leaf bgp-id {
- description "The BGP Identifier.";
- type string;
- default "";
- }
-
- leaf address {
- description "The IP address of BGP connection.";
- type string;
- default "";
- }
-
- leaf port {
- description "The port for connection between the BGP peers.";
- type uint16;
- default 0;
- }
-
- leaf as {
- description "Autonomous system number.";
- type uint32;
- default 0;
- }
-
- leaf holdtime {
- description "Time interval (in seconds) for HoldTimer proposed by the peer.";
- type uint16;
- default 0;
- }
-
- leaf four-octet-as-capability {
- description "The BGP peer 4 byte AS numbers support capability.";
- type boolean;
- default "false";
- }
-
- leaf bgp-extended-message-capability {
- description "The bgp extended message support capability.";
- type boolean;
- default "false";
- }
-
- leaf gr-capability {
- description "BGP graceful restart support capability.";
- type boolean;
- default "false";
- }
-
- leaf add-path-capability {
- type boolean;
- default "false";
- }
-
- leaf route-refresh-capability {
- reference "https://tools.ietf.org/html/rfc2918";
- type boolean;
- default "false";
- }
-
- list advertized-table-types {
- description "The BGP Table-type capabilities advertized by the BGP peer.";
- uses afi-safi;
- }
-
- list advertised-add-path-table-types {
- description "The BGP Table-type capabilities advertized by the BGP peer.";
- uses afi-safi;
- leaf send-receive {
- description "Send Receive Add Path Configuration.";
- type string;
- default "";
- }