device = {
	"DEVICE1" : {
		"ip" : "192.168.1.1",
		"device_type" : "ios_xe" 
	},
	"DEVICE2" : {
		"ip" : "192.168.2.1",
		"device_type" : "ios_xe" 
	}
}


print(device["DEVICE2"]["device_type"])
f28e832c278d68d0786527d6fbd3c5a42d413bda
<mask token>

<mask token>
print(device['DEVICE2']['device_type'])

device = {'DEVICE1': {'ip': '192.168.1.1', 'device_type': 'ios_xe'},
    'DEVICE2': {'ip': '192.168.2.1', 'device_type': 'ios_xe'}}
print(device['DEVICE2']['device_type'])

device = {
	"DEVICE1" : {
		"ip" : "192.168.1.1",
		"device_type" : "ios_xe" 
	},
	"DEVICE2" : {
		"ip" : "192.168.2.1",
		"device_type" : "ios_xe" 
	}
}


print(device["DEVICE2"]["device_type"])