Yang changes
------------
A new yang file ebgp-bfd.yang, published to accomodate bfd parameters,
-which has two containers: bfd-monitoring, bfd-config as below.
+which has bfd-config container as below.
.. code-block:: none
:caption: ebgp-bfd.yang
- container bfd-monitoring {
+ container bfd-config {
config "true";
+ leaf bfd-enabled {
+ description "is BFD enabled";
+ type boolean;
+ default false;
+ }
+
leaf detect-mult {
type uint32;
default 3;
transmit BFD control messages. Defaults
to 6000";
}
- }
- container bfd-config {
leaf multihop {
type boolean;
default true;
Changes will be needed in ``ebgp.yang``.
-- A new parameter will be adde to the existing ebgp.yang,
- to enable/disable bfd in bgp configuration
-- dc-gwy TEP ip will be modified as list
+- dc-gw TEP ip will be modified as a container
.. code-block:: none
:caption: ebgp.yang
- leaf bfd-enabled {
- type boolean;
- mandatory "false";
- }
-
- list tep-dcgw {
- key "dc-gw-ip";
- description "mapping: DC-Gwy ip <> TEP ip";
- leaf dc-gw-ip {
- type string;
- }
- leaf-list tep-ip {
- type string;
+ container dcgw-tep-list {
+ list dcgw-tep {
+ key "dc-gw-ip";
+ description "mapping: DC-Gwy ip <> TEP ip";
+
+ leaf dc-gw-ip {
+ type string;
+ }
+ leaf-list tep-ips {
+ type string;
+ }
}
}
revision "2019-02-19" {
}
- container bfd-monitoring {
+ container bfd-config {
config "true";
+ leaf bfd-enabled {
+ description "is BFD enabled";
+ type boolean;
+ default false;
+ }
leaf detect-mult {
type uint32;
default 3;
}
leaf min-rx {
type uint32 {
- range "50..50000";
- }
+ range "50..50000";
+ }
default 500;
description "The shortest interval, in milli-seconds, at
which this BFD session offers to receive
}
leaf min-tx {
type uint32 {
- range "1000 .. 60000";
- }
+ range "1000 .. 60000";
+ }
default 6000;
description "The shortest interval, in milli-seconds,
at which this BFD session is willing to
transmit BFD control messages. Defaults
to 6000";
}
- }
-
- container bfd-config {
leaf multihop {
type boolean;
default true;
description "Value of True indicates suppport for BFD multihop";
- config "true";
}
}
}
}
} //vrfMaxpaths
- container bfd {
- leaf bfd-enabled {
- description "is BFD enabled";
- type boolean;
- default false;
+ container dcgw-tep-list {
+ list dcgw-tep {
+ key "dc-gw-ip";
+ description "mapping: DC-Gwy ip <> TEP ip";
+
+ leaf dc-gw-ip {
+ type string;
+ }
+ leaf-list tep-ips {
+ type string;
+ }
}
}
- list tep-dcgw {
- key "dc-gw-ip";
- description "mapping: DC-Gwy ip <> TEP ip";
- leaf dc-gw-ip {
- type string;
- }
- leaf-list tep-ip {
- type string;
- }
- }
} // bgp
}