Skip to content

Commit

Permalink
Add extra variables for secondary mgmt addr
Browse files Browse the repository at this point in the history
Prefix length and mgmt_gw should be available variables also for the
secondary management address.
  • Loading branch information
lunkwill42 committed Mar 31, 2023
1 parent 1a69c5a commit fada077
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cnaas_nms/devicehandler/init_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,8 @@ def init_access_device_step1(
ip_interface("{}/{}".format(secondary_mgmt_ip, secondary_mgmt_gw_ipif.network.prefixlen))
),
"secondary_mgmt_ip": secondary_mgmt_ip,
"secondary_mgmt_prefixlen": int(secondary_mgmt_gw_ipif.network.prefixlen),
"secondary_mgmt_gw": secondary_mgmt_gw_ipif.ip,
}
)
device_variables = populate_device_vars(session, dev, new_hostname, DeviceType.ACCESS)
Expand Down

0 comments on commit fada077

Please sign in to comment.