Skip to content

/dns/record/list no longer supports target_bcd_list_old

I found that the code of net-api-python-scripts/get_rr_per_bcd.py no longer works (with netdb-client version 4.0.514.post2+539ca2b3.5ce4b14ea5c4)

Traceback (most recent call last):
  File "/usr/local/bin/python-kit-netdb/kit_netdb_api.py", line 120, in <module>
    main()
  File "/usr/local/bin/python-kit-netdb/kit_netdb_api.py", line 116, in main
    args.func(args)
  File "/usr/local/bin/python-kit-netdb/kit_netdb_api.py", line 86, in do_fetch_subnet
    netdb.get_occupied_ips_for_subnet(args.subnet)
  File "/usr/local/bin/python-kit-netdb/kit_netdb_api.py", line 61, in get_occupied_ips_for_subnet
    occupied_in_subnet = netdb_client.dns.Record.list(self.api, target_bcd_list_old=[subnet_bcd], type_old=subnet_type)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Record.list() got an unexpected keyword argument 'target_bcd_list_old'

target_bcd_list_old is not offered on the NETDB graphical API (swagger) either.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information