diff options
author | Satoshi Fujimoto <satoshi.fujimoto7@gmail.com> | 2018-05-29 15:41:25 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-06-13 13:10:24 +0900 |
commit | 4c63ed5d87f28ba2a829cec8cb65c01388a703ed (patch) | |
tree | f672f653d93129fccd2147974f55a72fb7f63757 /tools/pyang_plugins/gobgp.yang | |
parent | f6d62322eb0ba249d67f4b32ad65c7cb5f209544 (diff) |
config: Change "RedistributeRouteTypeList" to []string
RedistributeRouteTypeList is []InstallProtocolType,
but InstallProtocolType only defines limited number of protocols,
And currently, EnableZebra() in gRPC API validates its request
with the protocols defined by InstallProtocolType,
so the protocols such as "babel" or "lldp" could not be configured
to Zebra, via gRPC API.
This patch fixes RedistributeRouteTypeList to be []string,
and fixes EnableZebra() to validate with the protocols defined
in zapi.go.
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
Diffstat (limited to 'tools/pyang_plugins/gobgp.yang')
-rw-r--r-- | tools/pyang_plugins/gobgp.yang | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang index 053ef0a0..639edd10 100644 --- a/tools/pyang_plugins/gobgp.yang +++ b/tools/pyang_plugins/gobgp.yang @@ -1191,9 +1191,7 @@ module gobgp { "Configure url for zebra."; } leaf-list redistribute-route-type { - type identityref { - base ptypes:install-protocol-type; - } + type string; } leaf version { type uint8; |