From 8a26e8a8bcbd0322e6a913be179757cc83051c40 Mon Sep 17 00:00:00 2001 From: Nikolay Fedorov Date: Thu, 12 Mar 2020 16:10:25 +0400 Subject: [PATCH] Example network-config network_data.json format "id" and "name" fields should be present for renaming of NICs Relates-To: #108 Change-Id: I81b5776db0d4cf9e52cf9e76ed7d450af02fcc73 --- debian-isogen/examples/network-config | 84 +++++++++++++++++++++++---- 1 file changed, 73 insertions(+), 11 deletions(-) diff --git a/debian-isogen/examples/network-config b/debian-isogen/examples/network-config index c6e03f9..bd4ad79 100644 --- a/debian-isogen/examples/network-config +++ b/debian-isogen/examples/network-config @@ -1,12 +1,74 @@ -network: - version: 1 - config: - - type: physical - name: id0 - mac_address: "52:54:00:bf:b2:d8" - subnets: - - type: static - address: 192.168.100.100 - netmask: 255.255.255.0 - gateway: 192.168.100.1 +{ +"links": [ + { + "name": "pxe0", + "id": "pxe0", + "type": "phy", + "ethernet_mac_address": "52:54:00:7d:15:63" + }, + { + "name": "oam0", + "type": "phy", + "id": "oam0", + "ethernet_mac_address": "52:54:00:bf:b2:d8" + }, + { + "name": "stor0", + "id": "stor0", + "type": "phy", + "ethernet_mac_address": "52:54:00:9b:2c:71" + }, + { + "name": "underlay0", + "type": "phy", + "id": "underlay0", + "ethernet_mac_address": "52:54:00:9b:2c:71" + } +], +"networks": [ + { + "id": "pxe0-ipv4", + "type": "ipv4", + "link": "pxe0", + "ip_address": "192.168.10.100", + "netmask": "255.255.255.0" + }, + { + "id": "oam0-ipv4", + "type": "ipv4", + "link": "oam0", + "ip_address": "192.168.100.100", + "netmask": "255.255.255.0", + "routes": [ + { + "network": "0.0.0.0", + "netmask": "0.0.0.0", + "gateway": "192.168.100.1" + } + ] + }, + { + "id": "stor0-ipv4", + "type": "ipv4", + "link": "stor0", + "ip_address": "192.168.20.100", + "netmask": "255.255.255.0" + }, + { + "id": "underlay0-ipv4", + "type": "ipv4", + "link": "underlay0", + "ip_address": "192.168.30.100", + "netmask": "255.255.255.0" + } + + +], +"services": [ + { + "address": "8.8.8.8", + "type": "dns" + } +] +}