Closed weynandkuijpers closed 4 years ago
Q1 to Q7 all of the answers will be obsoleted when we merge the branch unstable_identity (should make life easier) and the flow will be exhaustively documented.
8- The user of the SDK should stick to a release "a tag" 10.4, 10.4.1, 10.5 .. etc never pulling code from a branch.
9- We go with master branch (on tag 10.4)
10- normally your state is stored within the configmanager (any objects you create in jumpscale) and save they will be available when you go to kosmos again
11- for kosmos and ipython I updated the documentation for kosmos https://github.com/threefoldtech/jumpscaleX_core/blob/4db77652430e2a27bd6cc00508ffe72d7c206ad3/docs/kosmos/shell.md#kosmos-vs-ipython
so In python you basically don't get to work jumpscale world of objects because it's built on (tree hierarchy)
for Questions 1-7 there's a decent doc covering everything now, including recovering with your words too. https://github.com/threefoldtech/jumpscaleX_core/blob/unstable/docs/Identity.md#creating-multiple-identities
closing
Open questions are:
demo_ip_range="172.20.0.0/16" demo_port=8030 demo_network_name="demo_network_name_01"
create overlay network definition in datastructure called "network"
network = zos.network.create(r, ip_range=demo_ip_range, network_name=demo_network_name)
nodes_salzburg = zos.nodes_finder.nodes_search(farm_id=12775) # (IPv6 nodes) nodes_vienna_1 = zos.nodes_finder.nodes_search(farm_id=82872) # (IPv6 nodes) nodes_belgium = zos.nodes_finder.nodes_search(farm_id=1) # (IPv4 nodes, to be used as ingress/egress point. These are not webgatewaysm, just nodes connected to the internet with IPv4 addresses)
nodes_all = nodes_salzburg + nodes_vienna_1 + nodes_belgium + nodes_munich
nodes_all = nodes_salzburg[5:8] + nodes_vienna_1[5:8] + nodes_belgium[:2]
make sure to set a new port
for i, node in enumerate(nodes_all): if zos.nodes_finder.filter_is_up(node): iprange = f"172.20.{i+10}.0/24" zos.network.add_node(network, node.node_id , iprange, wg_port=demo_port) print("Node number: ", i, node.node_id, ":", iprange) else: print("Node", node.node_id,"is not up")