summaryrefslogtreecommitdiffstats
path: root/yang/frr-isisd.yang
diff options
context:
space:
mode:
authorEmanuele Di Pascale <emanuele@voltanet.io>2018-12-10 15:18:25 +0100
committerEmanuele Di Pascale <emanuele@voltanet.io>2018-12-18 15:25:57 +0100
commit9fe69cbb5a24e668c05909562a792d3cb8714260 (patch)
tree933931af966ba4f50a7dccbf66b01af8b5711817 /yang/frr-isisd.yang
parentisisd: formatting fixes in isis_cli.c (diff)
downloadfrr-9fe69cbb5a24e668c05909562a792d3cb8714260.tar.xz
frr-9fe69cbb5a24e668c05909562a792d3cb8714260.zip
isisd, yang: set default network-type to broadcast
isisd has both a circ_type and a circ_type_config variable to track the network tpye of an interface. The former has no default, but the latter defaults to broadcast. Adding that default makes sure that the yang leaf won't be deleted, which is something that would not make sense from an isisd perspective. We will need to add an operational state leaf to match the potential difference between the configured network type and the actual network type, since the latter might be different based on the interface flags received from zebra. Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
Diffstat (limited to '')
-rw-r--r--yang/frr-isisd.yang1
1 files changed, 1 insertions, 0 deletions
diff --git a/yang/frr-isisd.yang b/yang/frr-isisd.yang
index 23baa6df4..32b4d3acf 100644
--- a/yang/frr-isisd.yang
+++ b/yang/frr-isisd.yang
@@ -911,6 +911,7 @@ module frr-isisd {
leaf network-type {
type network-type;
+ default "broadcast";
must "(. = \"point-to-point\") or (. = \"broadcast\")";
description
"Explicitly configured type of IS-IS circuit (broadcast or point-to-point).";