Skip to content

[frr-10.0.1] Debug code for route-map RM_SET_SRC missing#42

Draft
jimmyzhai wants to merge 1 commit intosonic-net:frr-10.0.1from
jimmyzhai:rm_set_src
Draft

[frr-10.0.1] Debug code for route-map RM_SET_SRC missing#42
jimmyzhai wants to merge 1 commit intosonic-net:frr-10.0.1from
jimmyzhai:rm_set_src

Conversation

@jimmyzhai
Copy link

1. Print candidate-config and running-config in mgmt_txn_prepare_config
2. Print dnode xpath around dnode_create
3. Add mutex lock in lyd_new_path
4. Find dnode for xpath having RM_SET_SRC with value 10.1.0.32 and cache it,
   then check the same dnode in mgmt_txn_prepare_config

2. Print dnode xpath around dnode_create
3. Add mutex lock in lyd_new_path
4. Find dnode for xpath having RM_SET_SRC with value 10.1.0.32 and cache it,
   then check the same dnode in mgmt_txn_prepare_config
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

!strcmp("/frr-route-map:lib/route-map[name='RM_SET_SRC']/entry[sequence='10']/set-action[action='frr-zebra-route-map:src-address']/rmap-set-action/frr-zebra-route-map:ipv4-src-address", xpath)) {
mprotect(dnode->schema, sizeof(dnode->schema), PROT_READ);
rm_set_src_node = dnode;
free(xpath);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

free should be outside the if block, else there is leak.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants