From f9e9c8942c7761b48280be93c5ae1c1d7467c664 Mon Sep 17 00:00:00 2001 From: nrybowski Date: Thu, 8 Aug 2024 10:02:00 +0200 Subject: [PATCH] bier: Fix wrong type for mt-id in OSPF YANG configuration for BIER Signed-off-by: Nicolas Rybowski --- holo-ospf/src/northbound/configuration.rs | 4 ++-- holo-yang/modules/augmentations/holo-ospf.yang | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/holo-ospf/src/northbound/configuration.rs b/holo-ospf/src/northbound/configuration.rs index 0817b309..bb3253b9 100644 --- a/holo-ospf/src/northbound/configuration.rs +++ b/holo-ospf/src/northbound/configuration.rs @@ -107,7 +107,7 @@ pub struct InstanceCfg { #[derive(Debug)] pub struct BierOspfCfg { - pub mt_id: u16, + pub mt_id: u8, pub enabled: bool, pub advertise: bool, pub receive: bool, @@ -789,7 +789,7 @@ where }) .path(ospf::bier_ospf_cfg::mt_id::PATH) .modify_apply(|instance, args| { - let mt_id = args.dnode.get_u16(); + let mt_id = args.dnode.get_u8(); instance.config.bier.mt_id = mt_id; }) .delete_apply(|instance, _args| { diff --git a/holo-yang/modules/augmentations/holo-ospf.yang b/holo-yang/modules/augmentations/holo-ospf.yang index 5c2ca285..a149ad96 100644 --- a/holo-yang/modules/augmentations/holo-ospf.yang +++ b/holo-yang/modules/augmentations/holo-ospf.yang @@ -73,7 +73,7 @@ module holo-ospf { description "Defines protocol extensions."; leaf mt-id{ - type uint16 ; + type uint8 ; description "Multi-topology associated with bier sub-domain."; }