@@ -130,9 +130,9 @@ def interface_selection(interfaces):
130
130
131
131
# Validate interface input
132
132
# Must be an interface on the device AND NOT be the Management Interface
133
- while sel == args . interface or not sel in [intf ["name" ] for intf in interfaces ]:
133
+ while sel == MANAGEMENT_INTERFACE or not sel in [intf ["name" ] for intf in interfaces ]:
134
134
print ("INVALID: Select an available interface." )
135
- print (" " + args . interface + " is used for management." )
135
+ print (" " + MANAGEMENT_INTERFACE + " is used for management." )
136
136
print (" Choose another Interface" )
137
137
sel = input ("Which Interface do you want to configure? " )
138
138
@@ -143,8 +143,8 @@ def interface_selection(interfaces):
143
143
def get_ip_info ():
144
144
# Ask User for IP and Mask
145
145
ip = {}
146
- ip ["address" ] = do_input ("What IP address do you want to set? " )
147
- ip ["mask" ] = do_input ("What Subnet Mask do you want to set? " )
146
+ ip ["address" ] = input ("What IP address do you want to set? " )
147
+ ip ["mask" ] = input ("What Subnet Mask do you want to set? " )
148
148
return (ip )
149
149
150
150
@@ -169,7 +169,7 @@ def main():
169
169
170
170
# Print Starting Interface Details
171
171
print ("Starting Interface Configuration" )
172
- print_interface_details (args , selected_interface )
172
+ print_interface_details (selected_interface )
173
173
174
174
# As User for IP Address to set
175
175
ip = get_ip_info ()
0 commit comments