-
Notifications
You must be signed in to change notification settings - Fork 121
Support Huawei AR1000V #329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
self.wait_write(cmd="protocol inbound ssh port 830", wait="]") | ||
#self.wait_write(cmd="quit", wait="]") | ||
|
||
# Envia o comando commit inicialmente |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please change these comments to be in English?
self.spins += 1 | ||
|
||
return | ||
|
||
def bootstrap_mgmt_interface(self): | ||
self.wait_write(cmd="mmi-mode enable", wait=None) | ||
#self.wait_write(cmd="mmi-mode enable", wait=None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this not break the other Huawei VMs' configuration?
As far as I can tell, this disables the verification prompts for certain configuration commands.
Later, the code also undoes this, so I'm not sure where this would be set.
|
||
if match: | ||
if ridx == 0: # Mensagem de erro ao tentar commit | ||
print("Sistema ocupado, aguardando 5 segundos para tentar novamente...") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here about language. Also, don't print
to stdout, but rather use the logger.
self.wait_write(cmd="snetconf server enable", wait="]") | ||
self.wait_write(cmd="netconf", wait="]") | ||
self.wait_write(cmd="protocol inbound ssh port 830", wait="]") | ||
#self.wait_write(cmd="quit", wait="]") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this commented out?
self.wait_write(cmd="save", wait=">") | ||
self.wait_write(cmd="undo mmi-mode enable", wait=">") | ||
|
||
if self.vm_type == "AR1000V": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the AR1000V not use commit
?
@andrediashexa Have you perhaps had time to review my comments? I'm happy to help with getting this merged into vrnetlab! |
Even that AR1000V, the launch.py does not support this equipment.
Because of it, I developed this support, using the same logic of the project.