Skip to content

Commit

Permalink
Fix issue in loopback action set flow, now calling the right API to u…
Browse files Browse the repository at this point in the history
…pdate DB with user changes
  • Loading branch information
liorghub committed Jun 19, 2022
1 parent 02928c1 commit 3080f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4712,7 +4712,7 @@ def loopback_action(ctx, interface_name, action):
table_name = get_interface_table_name(interface_name)
if not table_name:
ctx.fail('Interface {} is invalid'.format(interface_name))
config_db.set_entry(table_name, interface_name, {"loopback_action": action})
config_db.mod_entry(table_name, interface_name, {"loopback_action": action})

#
# 'ipv6' subgroup ('config interface ipv6 ...')
Expand Down

0 comments on commit 3080f6a

Please sign in to comment.