Closed mbdraks closed 4 years ago
HI Michael,
I tried with a canned network and it worked for me with the same BP version. I wonder what is so special about the network you have. Could you export it and send it?
bps.network.load(template="BreakingPoint Switching")
{u'author': None, u'createdBy': None, u'createdOn': None, u'label': u'BreakingPoint Switching', u'name': u'BreakingPoint Switching', u'networkModel': [{...}, {...}, {...}, {...}, {...}, {...}, {...}, {...}, {...}, ...], u'revision': None, u'type': u'canned'}
bps.network.get()
{u'author': None, u'createdBy': None, u'createdOn': None, u'label': u'BreakingPoint Switching', u'name': u'BreakingPoint Switching', u'networkModel': [{...}, {...}, {...}, {...}, {...}, {...}, {...}, {...}, {...}, ...], u'revision': None, u'type': u'canned'}
bps.network.networkModel.get()
{u'dhcpv6c_cfg': None, u'dhcpv6c_req_opts_cfg': None, u'dhcpv6c_tout_and_retr_cfg': None, u'ds_lite_aftr': None, u'ds_lite_b4': None, u'enodeb': None, u'enodeb6': None, u'enodeb_mme': None, u'enodeb_mme6': None, u'enodeb_mme_sgw': None, u'enodeb_mme_sgw6': None, u'ggsn': None, u'ggsn6': None, u'interface': [{...}, {...}, {...}, {...}, {...}, {...}, {...}, {...}, {...}, ...], ...}
As a note : 9.0update3(9.00.108.26) or newer should be much better for RESTv2 a lot of issues were ironed out. But for this issue 9.0 should be fine also.
@nutu Thanks for the tip!
It was a simple empty NN with the definition of two interfaces. I followed your suggestion and tried with a canned NN and it worked, after copying it and removing the elements I was still able to do a get model so I'll keep using this one now.
Have a nice weekend!
Hi,
I'm trying to run the samples from the repo. I'm able to login and get stats from running tests but when I tried something else like getting the network model (to update it next) I'm getting this error:
Here's my code:
My BP is on 9.00.101.21. Should I use API v1 or v2?