Skip to content

Commit

Permalink
SFLOW-1: static-route configuration need static protocol configuration (
Browse files Browse the repository at this point in the history
openconfig#2644)

Updating batch configuration to configure static protocol along with static-route prefix item config.

"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."
  • Loading branch information
trathod1 authored Mar 6, 2024
1 parent 32ee90e commit bcaafe8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/cfgplugins/staticroute.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func NewStaticRouteCfg(batch *gnmi.SetBatch, cfg *StaticRouteCfg, d *ondatra.DUT
nh.NextHop = v
}
sp := gnmi.OC().NetworkInstance(ni).Protocol(oc.PolicyTypes_INSTALL_PROTOCOL_TYPE_STATIC, deviations.StaticProtocolName(d))
gnmi.BatchUpdate(batch, sp.Config(), c)
gnmi.BatchReplace(batch, sp.Static(cfg.Prefix).Config(), s)

return s, nil
Expand Down

0 comments on commit bcaafe8

Please sign in to comment.