Skip to content

Commit

Permalink
yang,ospf: Fix container name for BIER configuration in OSPFv3
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Rybowski <[email protected]>
  • Loading branch information
nrybowski committed Sep 9, 2024
1 parent b3e2255 commit 00dce3a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions holo-ospf/src/northbound/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ where
let mtu_ignore = args.dnode.get_bool();
iface.config.mtu_ignore = mtu_ignore;
})
.path(ospf::bier_ospf_cfg::mt_id::PATH)
.path(ospf::bier::mt_id::PATH)
.modify_apply(|instance, args| {
let mt_id = args.dnode.get_u8();
instance.config.bier.mt_id = mt_id;
Expand All @@ -799,20 +799,20 @@ where
let mt_id = 0;
instance.config.bier.mt_id = mt_id;
})
.path(ospf::bier_ospf_cfg::bier::enable::PATH)
.path(ospf::bier::bier::enable::PATH)
.modify_apply(|instance, args| {
let enable = args.dnode.get_bool();
instance.config.bier.enabled = enable;

let event_queue = args.event_queue;
event_queue.insert(Event::BierEnableChange(enable));
})
.path(ospf::bier_ospf_cfg::bier::advertise::PATH)
.path(ospf::bier::bier::advertise::PATH)
.modify_apply(|instance, args| {
let advertise = args.dnode.get_bool();
instance.config.bier.advertise = advertise;
})
.path(ospf::bier_ospf_cfg::bier::receive::PATH)
.path(ospf::bier::bier::receive::PATH)
.modify_apply(|instance, args| {
let receive = args.dnode.get_bool();
instance.config.bier.receive = receive;
Expand Down Expand Up @@ -1621,9 +1621,9 @@ impl Default for InstanceCfg {

impl Default for BierOspfCfg {
fn default() -> Self {
let enabled = ospf::bier_ospf_cfg::bier::enable::DFLT;
let advertise = ospf::bier_ospf_cfg::bier::advertise::DFLT;
let receive = ospf::bier_ospf_cfg::bier::receive::DFLT;
let enabled = ospf::bier::bier::enable::DFLT;
let advertise = ospf::bier::bier::advertise::DFLT;
let receive = ospf::bier::bier::receive::DFLT;
Self {
mt_id: 0,
enabled,
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 @@ -219,7 +219,7 @@ module holo-ospf {
}
description
"This augments ospf protocol configuration with bier.";
container bier-ospf-cfg{
container bier {
uses bier-protocol-extensions;
description
"Control of bier advertisement and reception.";
Expand Down

0 comments on commit 00dce3a

Please sign in to comment.