You erroneously use Model API. Specifically:
1. Each model must be built from top level node; in your case: Cisco_IOS_XR_ifmgr_cfg.InterfaceConfigurations().
2. Each list element after it is created must be added to the list; in your case:
all_ifcs = Cisco_IOS_XR_ifmgr_cfg.InterfaceConfigurations()
iface_configs = Cisco_IOS_XR_ifmgr_cfg.InterfaceConfigurations.InterfaceConfiguration()
iface_configs.interface_name = 'Loopback2'
...
all_ifcs.interface_configuration.add(iface_configs)
3. Keep in mind that all container and list node classes are initialized in the parent node classes automatically; in your case: list object all_ifcs.interface_configuration. These classes must be used in the model building when applicable.
Please get familiar with Developer Guide, which shows in multiple examples how to use CRUD service on various YANG model objects.
Also this repository contains tones of examples on how the CRUD operations are programmed.
Yan Gorelik
YDK Solutions