Skip to content

Commit

Permalink
bier: Fix wrong type for mt-id in OSPF YANG configuration for BIER
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Rybowski <[email protected]>
  • Loading branch information
nrybowski committed Aug 14, 2024
1 parent b304b17 commit f9e9c89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions holo-ospf/src/northbound/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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| {
Expand Down
2 changes: 1 addition & 1 deletion holo-yang/modules/augmentations/holo-ospf.yang
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
}
Expand Down

0 comments on commit f9e9c89

Please sign in to comment.