HQ-A root@maas-hq-a:/home/ubuntu# maas admin interface unlink-subnet yyb3ck 556 id=1
{"id": ["'1' is not a valid id. It should be one of: '5699', '5700'."]}
HQ-A root@maas-hq-a:/home/ubuntu# maas admin interface read yyb3ck 556|jq '.links[].id'
5700
And If I try to unlink 5700 as a normal API client (Terraform for example) would do, Its failed:
What is ID 5705? And who created and why after I unlinked 5700? That is why it hurts. I cannot properly execute an unlink command because of the hidden ID 5699.
As you can see the ID 5699 is hidden:
HQ-A root@maas- hq-a:/home/ ubuntu# maas admin interface unlink-subnet yyb3ck 556 id=1 hq-a:/home/ ubuntu# maas admin interface read yyb3ck 556|jq '.links[].id'
{"id": ["'1' is not a valid id. It should be one of: '5699', '5700'."]}
HQ-A root@maas-
5700
And If I try to unlink 5700 as a normal API client (Terraform for example) would do, Its failed:
HQ-A root@maas- hq-a:/home/ ubuntu# maas admin interface unlink-subnet yyb3ck 556 id=5700 version" : null, mtu": 1500,
"subnet" : {
"name" : "oam",
"description" : "",
"vlan" : {
" vid": 0,
" mtu": 1500,
" dhcp_on" : true,
" external_ dhcp": null,
" relay_vlan" : null,
" fabric_ id": 0,
" id": 5001,
" secondary_ rack": null,
" name": "untagged",
" fabric" : "fabric-0",
" primary_ rack": "qxr7ms",
" space": "undefined",
" resource_ uri": "/MAAS/ api/2.0/ vlans/5001/ "
"cidr" : "192.168.104.0/24",
"rdns_ mode": 2,
"gateway_ ip": "192.168.104.254",
"dns_ servers" : [
" 192.168. 104.11" ,
" 192.168. 104.12" ,
" 192.168. 104.7"
"allow_ dns": true,
"allow_ proxy": true,
"active_ discovery" : false,
"managed" : true,
"disabled_ boot_architectu res": [],
"id": 1,
"space" : "undefined",
"resource_ uri": "/MAAS/ api/2.0/ subnets/ 1/" connected" : true,
"subnet" : {
"name" : "oam",
"description" : "",
"vlan" : {
" vid": 0,
" mtu": 1500,
" dhcp_on" : true,
" external_ dhcp": null,
" relay_vlan" : null,
" fabric_ id": 0,
" id": 5001,
" secondary_ rack": null,
" name": "untagged",
" fabric" : "fabric-0",
" primary_ rack": "qxr7ms",
" space": "undefined",
" resource_ uri": "/MAAS/ api/2.0/ vlans/5001/ "
"cidr" : "192.168.104.0/24",
"rdns_ mode": 2,
"gateway_ ip": "192.168.104.254",
"dns_ servers" : [
" 192.168. 104.11" ,
" 192.168. 104.12" ,
" 192.168. 104.7"
"allow_ dns": true,
"allow_ proxy": true,
"active_ discovery" : false,
"managed" : true,
"disabled_ boot_architectu res": [],
"id": 1,
"space" : "undefined",
"resource_ uri": "/MAAS/ api/2.0/ subnets/ 1/"
"ip_ address" : "192.168.104.201"
"external_ dhcp": null,
"relay_ vlan": null,
"fabric_ id": 0,
"secondary_ rack": null,
"primary_ rack": "qxr7ms",
"resource_ uri": "/MAAS/ api/2.0/ vlans/5001/ " speed": 0, 00:49:64: b1", api/2.0/ nodes/yyb3ck/ interfaces/ 556/"
Success.
Machine-readable output follows:
{
"tags": [],
"firmware_
"link_speed": 0,
"sriov_max_vf": 0,
"id": 556,
"effective_
"name": "ens4",
"links": [
{
"id": 5705,
"mode": "link_up",
},
],
}
}
],
"parents": [],
"link_
"vendor": "Red Hat, Inc.",
"type": "physical",
"discovered": [
{
},
],
},
}
],
"vlan": {
"vid": 0,
"mtu": 1500,
"dhcp_on": true,
"id": 5001,
"name": "untagged",
"fabric": "fabric-0",
"space": "undefined",
},
"interface_
"system_id": "yyb3ck",
"product": null,
"enabled": true,
"mac_address": "52:54:
"params": {},
"numa_node": 0,
"children": [],
"resource_uri": "/MAAS/
}
HQ-A root@maas- hq-a:/home/ ubuntu# maas admin interface read yyb3ck 556|jq '.links[].id'
5705
What is ID 5705? And who created and why after I unlinked 5700? That is why it hurts. I cannot properly execute an unlink command because of the hidden ID 5699.