networktocode / ntc-rosetta

The missing bridge between industry standard CLIs and YANG
https://ntc-rosetta.readthedocs.io/en/latest/index.html
Apache License 2.0
103 stars 23 forks source link

Add Junos helper for delete RPC #26

Closed dgjustice closed 5 years ago

dgjustice commented 5 years ago

Add helper callable to allow customization of Junos delete RPC and updated Junos translate tutorial. Addresses issue #25

dbarrosop commented 5 years ago

If I am understanding the code correctly, this means you can't have multiple devices with a different configuration, which may be a problem in some cases.

yangify already lets you pass information via the extras attribute. I suggest exposing that and leveraging it instead. In this case, your class would be a helper method and you'd just call it like helpers.junos_delete_operation(self.yy.extras["delete"])