#!/usr/bin/env python

class Device:
    def __init__(self,ip_addr,username,password):
        self.ip_addr = ip_addr
        self.username = username
        self.password = password

    def display_ip(self):
        print('IP address: {}'.format(self.ip_addr))

    def display_login(self):
        print('Username: {}'.format(self.username))
        print('Password: {}'.format(self.password))

    def add_vendor(self, vendor):
        self.vendor = vendor

dev1 = Device(ip_addr='192.168.1.100',username='admin',password='admin')
dev2 = Device(ip_addr='172.16.1.100',username='cisco',password='cisco')
dev3 = Device(ip_addr='10.10.1.100',username='arista',password='arista')
dev4 = Device(ip_addr='8.8.8.8',username='googleadmin',password='googlepassword')

print()
print('Network device list')
print('---------------------------------\n')

print('Device 1:')
dev1.display_ip()
dev1.display_login()

print('Device 2:')
dev2.display_ip()
dev2.display_login()

print('Device 3:')
dev3.display_ip()
dev3.display_login()

print('Device 4:')
dev4.display_ip()
dev4.display_login()

dev1.add_vendor('Cisco')

print(dev1.vendor)
