summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--config/bgp_configs.go11
-rw-r--r--tools/pyang_plugins/gobgp.yang18
2 files changed, 29 insertions, 0 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go
index 093be338..cd8df79d 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -791,6 +791,15 @@ type Neighbors struct {
NeighborList []Neighbor
}
+//struct for container gobgp:zebra
+type Zebra struct {
+ // original -> gobgp:enabled
+ //gobgp:enabled's original type is boolean
+ Enabled bool
+ // original -> gobgp:url
+ Url string
+}
+
//struct for container gobgp:mrt
type Mrt struct {
// original -> gobgp:file-name
@@ -1335,6 +1344,8 @@ type Global struct {
ApplyPolicy ApplyPolicy
// original -> gobgp:mrt
Mrt Mrt
+ // original -> gobgp:zebra
+ Zebra Zebra
}
//struct for container bgp:bgp
diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang
index 07daafa1..aff25752 100644
--- a/tools/pyang_plugins/gobgp.yang
+++ b/tools/pyang_plugins/gobgp.yang
@@ -623,4 +623,22 @@ module bgp-gobgp {
}
}
}
+
+ augment "/bgp:bgp/bgp:global" {
+ description "zebra configuration";
+ container zebra {
+ description
+ "Configure connection to zebra";
+ leaf enabled {
+ type boolean;
+ description
+ "Configure enabling to connect to zebra.";
+ }
+ leaf url {
+ type string;
+ description
+ "Configure url for zebra.";
+ }
+ }
+ }
}