network_cli.py help

Would anyone happen to know if the ansible_port variable is accessible anywhere in this module? I’d like to make an update (for personal use) that differentiates an action based on port. Thanks for any info!

If I understand the question correctly you want to access port value within network_cli.py, if yes you can do it by accessing
self._play_context.port

Regards,
Ganesh

Exactly what I needed, thanks for the help!