How to Solve NameError: name 'attach_interfaces' is not defined -- nova
Solution: Import the 'attach_interfaces' module
# Add the following line to the top of your code
from nova.policies import attach_interfaces
For more information:
nova attach_interfaces