Skip to content
Allen Robel edited this page Oct 19, 2024 · 3 revisions

ndfc-python backround and future

Originally, ndfc-python was conceived as an independent project utilizing its own custom classes to interact with Nexus Dashboard Fabric Controller (NDFC). Later, I started working with the DCNM Ansible team at Cisco and realized that, with some restructuring, the code I was writing for that project could be made portable enough to be used for both ansible-dcnm and ndfc-python. Over the last year, a few of the module support classes were converted to achieve this portability (specifically, in the areas of fabric, image upgrade, image policy, maintenance mode, and bootflash), and all future modules will be written with this in mind.

There are no current plans to rewrite the legacy ansible-dcnm modules, such as dcnm_network, dcnm_vrf, dcnm_inventory, dcnm_policy, etc. But I plan to convert the network, vrf, and policy classes in the ndfc-python repository to use RestSend() from the ansible-dcnm repository; perhaps eventually using them as a basis for upgrading the corresponding ansible-dcnm modules.

The ability to share code with the ansible-dcnm project should greatly accelerate progress for the ndfc-python repository.

Clone this wiki locally