You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The routing plugin (initially) writes all active routes found on the system to the running datastore. All routes have a node named type with a value of ietf-routing:static. The plugin then updates the routing table by creating exact same routes but with proto static which is incorrect. There is an error present in the output while loading the plugin.
Routing table before:
$ ip rodefault via 172.27.29.254 dev net0 proto dhcp src 172.27.29.1 metric 100172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown172.27.29.0/24 dev net0 proto kernel scope link src 172.27.29.1 metric 100172.27.29.254 dev net0 proto dhcp scope link src 172.27.29.1 metric 100
$
Error while loading:
[ERR] Invalid leafref value "net0" - no target instance "/if:interfaces/if:interface/if:name" with the same value. (Data location "/ietf-routing:routing/control-plane-protocols/control-plane-protocol[type='ietf-routing:static'][name='unspec']/static-routes/ietf-ipv4-unicast-routing:ipv4/route[destination-prefix='172.27.29.254/32']/next-hop/next-hop-list/next-hop[index='index-0']/outgoing-interface".)
[ERR] Validation failed.
[ERR] ietf-routing-plugin: Unable to fill running Datastore, Possible error is matching interfaces in interfaces plugin, Err: Session::applyChanges: Couldn't apply changes: SR_ERR_VALIDATION_FAILED Invalid leafref value "net0" - no target instance "/if:interfaces/if:interface/if:name" with the same value. (Data location "/ietf-routing:routing/control-plane-protocols/control-plane-protocol[type='ietf-routing:static'][name='unspec']/static-routes/ietf-ipv4-unicast-routing:ipv4/route[destination-prefix='172.27.29.254/32']/next-hop/next-hop-list/next-hop[index='index-0']/outgoing-interface".) (SR_ERR_LY) Validation failed. (SR_ERR_VALIDATION_FAILED)
Routing table after:
$ ip rodefault via 172.27.29.254 dev net0 proto staticdefault via 172.27.29.254 dev net0 proto dhcp src 172.27.29.1 metric 100172.17.0.0/16 dev docker0 proto static linkdown172.27.29.0/24 dev net0 proto static172.27.29.0/24 dev net0 proto kernel scope link src 172.27.29.1 metric 100172.27.29.254 dev net0 proto static172.27.29.254 dev net0 proto dhcp scope link src 172.27.29.1 metric 100
The text was updated successfully, but these errors were encountered:
The routing plugin (initially) writes all active routes found on the system to the running datastore. All routes have a node named type with a value of ietf-routing:static. The plugin then updates the routing table by creating exact same routes but with proto static which is incorrect. There is an error present in the output while loading the plugin.
Unfortunately i can not get it to set static routes with the same values as the dhcp and kernel route entries. To be more precise, it doesn't set anything from running ds to the system on my test setup. Nevertheless, can you try the routing plugin from this branch?
[ERR] Invalid leafref value "net0" - no target instance "/if:interfaces/if:interface/if:name" with the same value. (Data location "/ietf-routing:routing/control-plane-protocols/control-plane-protocol[type='ietf-routing:static'][name='unspec']/static-routes/ietf-ipv4-unicast-routing:ipv4/route[destination-prefix='172.27.29.254/32']/next-hop/next-hop-list/next-hop[index='index-0']/outgoing-interface".)
[ERR] Validation failed.
[ERR] ietf-routing-plugin: Unable to fill running Datastore, Possible error is matching interfaces in interfaces plugin, Err: Session::applyChanges: Couldn't apply changes: SR_ERR_VALIDATION_FAILED Invalid leafref value "net0" - no target instance "/if:interfaces/if:interface/if:name" with the same value. (Data location "/ietf-routing:routing/control-plane-protocols/control-plane-protocol[type='ietf-routing:static'][name='unspec']/static-routes/ietf-ipv4-unicast-routing:ipv4/route[destination-prefix='172.27.29.254/32']/next-hop/next-hop-list/next-hop[index='index-0']/outgoing-interface".) (SR_ERR_LY) Validation failed. (SR_ERR_VALIDATION_FAILED)
this requires that you start the interfaces plugin once so it fills the interfaces running ds with the current interfaces of the system. After that you shouldn't see this error in the routing plugin once it's started.
The routing plugin (initially) writes all active routes found on the system to the running datastore. All routes have a node named
type
with a value ofietf-routing:static
. The plugin then updates the routing table by creating exact same routes but with protostatic
which is incorrect. There is an error present in the output while loading the plugin.Routing table before:
Error while loading:
Routing table after:
The text was updated successfully, but these errors were encountered: