Skip to content

Commit

Permalink
quads-cli mod-interface doesnt update switch_ip
Browse files Browse the repository at this point in the history
When you mod interfaces with:
  quads-cli [...] --interface-switch-ip [...]

the mongo field switch_ip is not updated, but rather the legacy
field name of ip_address.

Fixes: #443
Change-Id: Ibd8cca33ed51e6910dc0499da0d1b4143b66c7de
  • Loading branch information
kambiz-aghaiepour committed Aug 7, 2023
1 parent 2205157 commit 0c89eeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quads/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,7 @@ def action_modinterface(self):
"name": self.cli_args["ifname"],
"bios_id": self.cli_args["ifbiosid"],
"mac_address": self.cli_args["ifmac"],
"ip_address": self.cli_args["ifip"],
"switch_ip": self.cli_args["ifip"],
"switch_port": self.cli_args["ifport"],
"speed": self.cli_args["ifspeed"],
"vendor": self.cli_args["ifvendor"],
Expand Down

0 comments on commit 0c89eeb

Please sign in to comment.