def ConfigVxlanEmulationNgpfHlPy(get_handle='yes', **kwargs): # get_handle = Defaults to yes. # # The reason there is get_handle is because this # API has two usage. # 1> VxLAN emulation # 2> VxLAN global settings. # Configuring VxLAN global settings won't have a # handle to return. print '\nConfigVxlanEmulationNgpfHlPy:' for key,value in kwargs.iteritems(): print '\t%s: %s' % (key,value) status = ixia_ngpf.emulation_vxlan_config(**kwargs) if status['status'] != '1': print '\nonfigVxlanEmulationNgpfHlPy failed: %s\n' % status['log'] sys.exit() PrintDict(status) if get_handle == 'yes': # status: 1 # ethernet_handle: /topology:1/deviceGroup:1/ethernet:1 # handle: /topology:1/deviceGroup:1/ethernet:1/ipv4:1/vxlan:1/item:1 /topology:1/deviceGroup:1/ethernet:1/ipv4:1/vxlan:1/item:2 /topology:1/deviceGroup:1/ethernet:1/ipv4:1/vxlan:1/item:3 # ipv4_handle: /topology:1/deviceGroup:1/ethernet:1/ipv4:1 # vxlan_handle: /topology:1/deviceGroup:1/ethernet:1/ipv4:1/vxlan:1 # vxlan_static_info: /topology:1/deviceGroup:1/ethernet:1/ipv4:1/vxlan:1/vxlanStaticInfo # dg_handle: /topology:1/deviceGroup:1 return status