Skip to content

Update migrations to reflect generator enhancements #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@
"description": "Network node",
"tag": "NODE",
"status": "active",
"product_blocks": [
"Node",
],
"root_product_block": "Node",
"fixed_inputs": {
"node_type": "Cisco",
},
Expand All @@ -44,9 +42,7 @@
"description": "Network node",
"tag": "NODE",
"status": "active",
"product_blocks": [
"Node",
],
"root_product_block": "Node",
"fixed_inputs": {
"node_type": "Nokia",
},
Expand Down
13 changes: 5 additions & 8 deletions migrations/versions/schema/2023-11-02_c044b0da4126_add_port.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@
"description": "Network port",
"tag": "PORT",
"status": "active",
"product_blocks": [
"Port",
],
"root_product_block": "Port",
"fixed_inputs": {
"speed": PortSpeed._10000.value,
},
Expand All @@ -46,9 +44,7 @@
"description": "Network port",
"tag": "PORT",
"status": "active",
"product_blocks": [
"Port",
],
"root_product_block": "Port",
"fixed_inputs": {
"speed": PortSpeed._100000.value,
},
Expand All @@ -68,11 +64,12 @@
"auto_negotiation": "is Ethernet auto negotiation enabled or not",
"lldp": "is Link Llayer Discovery Protocol enabled or not",
"enabled": "is port enabled in inventory management system?",
"node": "link to the Node product block the port is residing on",
"ims_id": "ID of the node in the inventory management system",
"nrm_id": "ID of the node in the network resource manager",
},
"depends_on_block_relations": [],
"depends_on_block_relations": [
"Node",
],
},
},
"workflows": {},
Expand Down
44 changes: 20 additions & 24 deletions migrations/versions/schema/2023-11-16_1faddadd7aae_add_core_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@
"description": "Core link",
"tag": "CORE_LINK",
"status": "active",
"product_blocks": [
"CoreLink",
"CorePort",
],
"root_product_block": "CoreLink",
"fixed_inputs": {
"speed": CoreLinkSpeed._10000.value,
},
Expand All @@ -47,30 +44,13 @@
"description": "Core link",
"tag": "CORE_LINK",
"status": "active",
"product_blocks": [
"CoreLink",
"CorePort",
],
"root_product_block": "CoreLink",
"fixed_inputs": {
"speed": CoreLinkSpeed._100000.value,
},
},
},
"product_blocks": {
"CoreLink": {
"product_block_id": uuid4(),
"description": "core link product block",
"tag": "CORE_LINK",
"status": "active",
"resources": {
"ports": "core ports",
"ims_id": "ID of the core link in the inventory management system",
"ipv6_prefix_ipam_id": "IPAM ID of IP prefix used to number ports of this core link",
"nrm_id": "ID of the core link in the network resource manager",
"under_maintenance": "core link under maintenance?",
},
"depends_on_block_relations": [],
},
"CorePort": {
"product_block_id": uuid4(),
"description": "core port product block",
Expand All @@ -81,10 +61,26 @@
"enabled": "is port enabled in inventory management system?",
"ims_id": "ID of the port in the inventory management system",
"nrm_id": "ID of the port in the network resource manager",
"node": "link to the Node product block the port is residing on",
"ipv6_ipam_id": "ID of the port's IPv6 address in IPAM",
},
"depends_on_block_relations": [],
"depends_on_block_relations": [
"Node",
],
},
"CoreLink": {
"product_block_id": uuid4(),
"description": "core link product block",
"tag": "CORE_LINK",
"status": "active",
"resources": {
"ims_id": "ID of the core link in the inventory management system",
"ipv6_prefix_ipam_id": "IPAM ID of IP prefix used to number ports of this core link",
"nrm_id": "ID of the core link in the network resource manager",
"under_maintenance": "core link under maintenance?",
},
"depends_on_block_relations": [
"CorePort",
],
},
},
"workflows": {},
Expand Down
35 changes: 17 additions & 18 deletions migrations/versions/schema/2023-11-17_e2a0fed2a4c7_add_l2vpn.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,39 +31,38 @@
"description": "L2VPN",
"tag": "L2VPN",
"status": "active",
"product_blocks": [
"VirtualCircuit",
"SAP",
],
"root_product_block": "VirtualCircuit",
"fixed_inputs": {},
},
},
"product_blocks": {
"SAP": {
"product_block_id": uuid4(),
"description": "service access point",
"tag": "SAP",
"status": "active",
"resources": {
"vlan": "VLAN ID on port",
"ims_id": "ID of the SAP in the inventory management system",
},
"depends_on_block_relations": [
"Port",
],
},
"VirtualCircuit": {
"product_block_id": uuid4(),
"description": "virtual circuit product block",
"tag": "VC",
"status": "active",
"resources": {
"saps": "Virtual circuit service access points",
"speed": "speed of the L2VPN im Mbit/s",
"speed_policer": "speed policer active?",
"ims_id": "ID of the L2VPN in the inventory management system",
"nrm_id": "ID of the L2VPN in the network resource manager",
},
"depends_on_block_relations": [],
},
"SAP": {
"product_block_id": uuid4(),
"description": "service access point",
"tag": "SAP",
"status": "active",
"resources": {
"port": "Link to Port product block",
"vlan": "VLAN ID on port",
"ims_id": "ID of the SAP in the inventory management system",
},
"depends_on_block_relations": [],
"depends_on_block_relations": [
"SAP",
],
},
},
"workflows": {},
Expand Down
2 changes: 1 addition & 1 deletion templates/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# limitations under the License.
#
#
# This file describes the "Port" product
# This file describes the "Node" product
#
config:
summary_forms: true
Expand Down