Skip to content

Conversation

@andrediashexa
Copy link

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.

self.wait_write(cmd="protocol inbound ssh port 830", wait="]")
#self.wait_write(cmd="quit", wait="]")

# Envia o comando commit inicialmente
Copy link

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?


def bootstrap_mgmt_interface(self):
self.wait_write(cmd="mmi-mode enable", wait=None)
#self.wait_write(cmd="mmi-mode enable", wait=None)
Copy link

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...")
Copy link

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="]")
Copy link

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":
Copy link

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?

@vista-
Copy link

vista- commented Mar 28, 2025

@andrediashexa Have you perhaps had time to review my comments?

I'm happy to help with getting this merged into vrnetlab!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants