- This topic has 1 reply, 2 voices, and was last updated 1 year, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › FABRIC General Questions and Discussion › using the new(er) versions networks are not properly created in my code.
Tagged: help
Before a submit I’m declaring my network like this:
346 slice = self.cfslice.slice
347 import pdb; pdb.set_trace()
348 -> interfaces = [cfnic.get_interface() for cfnic in self.cfnics]
349 network = slice.add_l3network(name=self.name, interfaces=interfaces, type=self.type)
(Pdb) p self.type
‘IPv6’
….
INFO:./planner.py:submitting slice MySlice_DLP
Waiting for slice ……….. Slice state: StableOK
Waiting for ssh in slice .. ssh successful
Running post boot config … Done!
After submitted I expected to find subnets in the network object. I’m not seeing subnets any more and as shown (below) the network does not look populated at all Any insights? Is there an example I can learn from?
…
(Pdb) self.slice.get_networks()[0].show()
——- ————————————
ID f3ddf991-fcb4-4bbd-9a8e-86c643e6c594
Name net1
Layer
Type
Site
Gateway
Subnet
State Active
Error
——- ————————————
‘——- ————————————\nID f3ddf991-fcb4-4bbd-9a8e-86c643e6c594\nName net1\nLayer\nType\nSite\nGateway\nSubnet\nState Active\nError\n——- ————————————‘
When you invoke slice.submit()
, the slice
object (and the associated nodes, links, intfs) will not auto-update.
You need to do another slice = fablib.get_slice(name=slice.get_name())
(and re-retrieve enclosed nodes, link, intfs if needed) to obtain updated information.