diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2021-10-05 16:38:21 +0200 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-10-05 16:38:21 +0200 |
commit | 1bfee9368adcd91337b4b4b5ad22330678ed0e78 (patch) | |
tree | 8c38a5231a85cf1a5c178531eac8ecc41bf2a350 /python | |
parent | Merge pull request #9714 from idryzhov/bgp-ext-comm-doc (diff) | |
download | frr-1bfee9368adcd91337b4b4b5ad22330678ed0e78.tar.xz frr-1bfee9368adcd91337b4b4b5ad22330678ed0e78.zip |
isisd: fix redistribute CLI
Currently, it is possible to configure IPv6 protocols for IPv4
redistribution and vice versa in CLI. The YANG model doesn't allow this
so the user receives the following error:
```
nfware(config-router)# redistribute ipv4 ospf6 level-1
% Failed to edit configuration.
YANG error(s):
Invalid enumeration value "ospf6".
Invalid enumeration value "ospf6".
Invalid enumeration value "ospf6".
YANG path: Schema location /frr-isisd:isis/instance/redistribute/ipv4/protocol.
```
Let's make CLI more user-friendly and allow only supported protocols in
redistribution commands.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'python')
-rw-r--r-- | python/clidef.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/clidef.py b/python/clidef.py index a47cee2d6..ba7c9072c 100644 --- a/python/clidef.py +++ b/python/clidef.py @@ -435,6 +435,8 @@ if __name__ == "__main__": macros.load(os.path.join(basepath, "bgpd/bgp_vty.h")) # sigh :( macros["PROTO_REDIST_STR"] = "FRR_REDIST_STR_ISISD" + macros["PROTO_IP_REDIST_STR"] = "FRR_IP_REDIST_STR_ISISD" + macros["PROTO_IP6_REDIST_STR"] = "FRR_IP6_REDIST_STR_ISISD" errors = process_file(args.cfile, ofd, dumpfd, args.all_defun, macros) if errors != 0: |