Skip to content

Commit 24a174c

Browse files
committed
Fix some bugs and issues
1 parent bbb5764 commit 24a174c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

restconf_update_ipaddress/updateip.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ def interface_selection(interfaces):
130130

131131
# Validate interface input
132132
# 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]:
134134
print("INVALID: Select an available interface.")
135-
print(" " + args.interface + " is used for management.")
135+
print(" " + MANAGEMENT_INTERFACE + " is used for management.")
136136
print(" Choose another Interface")
137137
sel = input("Which Interface do you want to configure? ")
138138

@@ -143,8 +143,8 @@ def interface_selection(interfaces):
143143
def get_ip_info():
144144
# Ask User for IP and Mask
145145
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? ")
148148
return(ip)
149149

150150

@@ -169,7 +169,7 @@ def main():
169169

170170
# Print Starting Interface Details
171171
print("Starting Interface Configuration")
172-
print_interface_details(args, selected_interface)
172+
print_interface_details(selected_interface)
173173

174174
# As User for IP Address to set
175175
ip = get_ip_info()

0 commit comments

Comments
 (0)