From e3c62b2aeb869002051d06b2a76eaf539f96b176 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Wed, 22 Apr 2020 13:33:20 +0200 Subject: [PATCH] doc, yang, zebra: allow bandwidth up to 1 terabit/sec Allow bandwidth up to 1000000 Mb/s (ie. 1 Tb/s) and document it. Signed-off-by: Philippe Guibert Signed-off-by: Louis Scalbert --- doc/user/zebra.rst | 5 ++--- yang/frr-zebra.yang | 2 +- zebra/zebra_cli.c | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/user/zebra.rst b/doc/user/zebra.rst index 9199404f3e..a80580ec71 100644 --- a/doc/user/zebra.rst +++ b/doc/user/zebra.rst @@ -184,10 +184,9 @@ Standard Commands Enable or disable multicast flag for the interface. -.. clicmd:: bandwidth (1-10000000) +.. clicmd:: bandwidth (1-1000000) - - Set bandwidth value of the interface in kilobits/sec. This is for + Set bandwidth value of the interface in Megabits/sec. This is for calculating OSPF cost. This command does not affect the actual device configuration. diff --git a/yang/frr-zebra.yang b/yang/frr-zebra.yang index 564617103b..c338a23af0 100644 --- a/yang/frr-zebra.yang +++ b/yang/frr-zebra.yang @@ -2050,7 +2050,7 @@ module frr-zebra { leaf bandwidth { type uint32 { - range "1..100000"; + range "1..1000000"; } units "megabits/sec"; description diff --git a/zebra/zebra_cli.c b/zebra/zebra_cli.c index 296f03ae89..a00698e8c7 100644 --- a/zebra/zebra_cli.c +++ b/zebra/zebra_cli.c @@ -194,7 +194,7 @@ static void lib_interface_zebra_enabled_cli_write(struct vty *vty, DEFPY_YANG (bandwidth_if, bandwidth_if_cmd, - "[no] bandwidth ![(1-100000)]$bw", + "[no] bandwidth ![(1-1000000)]$bw", NO_STR "Set bandwidth informational parameter\n" "Bandwidth in megabits\n") -- 2.39.5