• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python vtn_vbr.delete_vtn函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中vtn_vbr.delete_vtn函数的典型用法代码示例。如果您正苦于以下问题:Python delete_vtn函数的具体用法?Python delete_vtn怎么用?Python delete_vtn使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了delete_vtn函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: test_vbr_flowfilter_pass


#.........这里部分代码省略.........
    print "VTN Create Failed"
    exit(1)

  retval=vbrif_portmap.create_vbrif('VtnOne','VbrTwo','VbrIfTwo')
  if retval != 0:
    print "VBRIF Create Failed"
    exit(1)

  retval=vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerFirst')
  if retval != 0:
    print "VTN Validate Failed"
    exit(1)

  retval=vtn_vbr.validate_vbr_at_controller('VtnOne','VbrOne','ControllerFirst')
  if retval != 0:
    print "VBR Validate Failed"
    exit(1)

  retval=vbrif_portmap.validate_vbrif_at_controller('VtnOne','VbrOne','VbrIfOne','ControllerFirst')
  if retval != 0:
    print "After Create VBRIF Validate Failed"
    exit(1)

  retval=vtn_vbr.validate_vbr_at_controller('VtnOne','VbrTwo','ControllerFirst', presence = 'yes', position = 1)
  if retval != 0:
    print "VBR Validate Failed"
    exit(1)

  retval=vbrif_portmap.validate_vbrif_at_controller('VtnOne','VbrTwo','VbrIfTwo','ControllerFirst', presence = 'yes', position = 0)
  if retval != 0:
    print "After Create VBRIF Validate Failed"
    exit(1)

  retval=flowlistentry.create_flowlist('FlowlistOne')
  if retval != 0:
    print "FlowList Create Failed"
    exit(1)

  retval=flowlistentry.create_flowlistentry('FlowlistOne', 'FlowlistentryOne','ControllerFirst')
  if retval != 0:
    print "FlowlistEntry Create Failed"
    exit(1)

  retval=flowfilter.create_flowfilter('VtnOne|VbrOne', 'FlowfilterOnePass')
  if retval != 0:
    print "VBRFlowFilter Create Failed"
    exit(1)

  retval=flowfilter.create_flowfilter_entry('VtnOne|VbrOne', 'FlowfilterOnePass')
  if retval != 0:
    print "VBRFlowFilterEntry Create Failed"
    exit(1)


  retval=flowfilter.validate_flowfilter_at_controller('VtnOne|VbrOne', 'ControllerFirst', 'FlowfilterOnePass', presence='yes', position=0)
  if retval != 0:
    print "FlowFilter validation at Controller Failed"
    exit(1)

  retval=flowfilter.delete_flowfilter_entry('VtnOne|VbrOne', 'FlowfilterOnePass')
  if retval != 0:
    print "VBRFlowFilterEntry deletete Failed"
    exit(1)

  retval=flowfilter.delete_flowfilter('VtnOne|VbrOne', 'FlowfilterOnePass')
  if retval != 0:
    print "VBRFlowFilter deletete Failed"
    exit(1)

  retval=flowlistentry.delete_flowlistentry('FlowlistOne', 'FlowlistentryOne')
  if retval != 0:
    print "FlowilistEntry deletete Failed"
    exit(1)

  retval=flowlistentry.delete_flowlist('FlowlistOne')
  if retval != 0:
    print "Flowilist deletete Failed"
    exit(1)

  retval=flowfilter.validate_flowfilter_at_controller('VtnOne|VbrOne', 'ControllerFirst', 'FlowfilterOnePass', presence='no', position=0)
  if retval != 0:
    print "FlowFilter validation Failed after deleting"
    exit(1)

  retval=vtn_vbr.delete_vtn('VtnOne')
  if retval != 0:
    print "DELETE VTN Failed"
    exit(1)

  retval=vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerFirst', presence='no')
  if retval != 0:
    print "VTN Validate Failed"
    exit(1)

  print "DELETE CONTROLLER"
  retval=controller.delete_controller_ex('ControllerFirst')
  if retval != 0:
     print "CONTROLLER delete failed"
     exit(1)
  print "VBR->FLOWFILTER TEST SUCCESS"
开发者ID:OnStack,项目名称:cloudexchange,代码行数:101,代码来源:vbr_flowfilter.py


示例2: test_vtn_vbr_vlanmap_lg_id

def test_vtn_vbr_vlanmap_lg_id():

    print "CREATE Controller"
    retval = controller.add_controller_ex("ControllerFirst")
    if retval != 0:
        print "TEST 5 :Controller Create Failed"
        exit(1)

    print "TEST 5 : VTenant with one VBridge one VLANMAP no_vlan_id and logicalport_id"
    # Delay for AUDIT
    time.sleep(15)
    retval = vtn_vbr.create_vtn("VtnOne")
    if retval != 0:
        print "VTN Create Failed"
        exit(1)

    retval = vtn_vbr.create_vbr("VtnOne", "VbrOne", "ControllerFirst")
    if retval != 0:
        print "VBR Create Failed"
        exit(1)

    retval = create_vlanmap("VtnOne", "VbrOne", "VlanmapOne", no_vlan=4)
    if retval != 0:
        print "VLANMAP Create Failed"
        exit(1)

    retval = validate_vlanmap_at_controller("VtnOne", "VbrOne", "VlanmapOne", "ControllerFirst", no_vlan_id=1)
    if retval != 0:
        print "After Create VLANMAP Validate Failed"
        exit(1)

    retval = update_vlanmap("VtnOne", "VbrOne", "VlanmapOne", update_id=1)
    if retval != 0:
        print "VLANMAP upadte Failed"
        exit(1)

    retval = validate_vlanmap_update("VtnOne", "VbrOne", "VlanmapOne", "ControllerFirst", no_vlan_id=1)
    if retval != 0:
        print "After update VLANMAP Validate Failed"
        exit(1)

    retval = vtn_vbr.validate_vbr_at_controller("VtnOne", "VbrOne", "ControllerFirst")
    if retval != 0:
        print "After Create VBR Validate Failed"
        exit(1)

    retval = vtn_vbr.validate_vtn_at_controller("VtnOne", "ControllerFirst")
    if retval != 0:
        print "VTN Validate Failed"
        exit(1)

    retval = delete_vlanmap("VtnOne", "VbrOne", "VlanmapOne", no_vlan=1)
    if retval != 0:
        print "VLANMAP Delete Failed"
        exit(1)

    retval = validate_vlanmap_at_controller(
        "VtnOne", "VbrOne", "VlanmapOne", "ControllerFirst", presence="no", position=0, no_vlan_id=1
    )
    if retval != 0:
        print "After Delete VLANMAP Validate Failed"
        exit(1)

    retval = vtn_vbr.delete_vbr("VtnOne", "VbrOne")
    if retval != 0:
        print "VBR/VTN Delete Failed"
        exit(1)

    retval = vtn_vbr.validate_vbr_at_controller("VtnOne", "VbrOne", "ControllerFirst", presence="no")
    if retval != 0:
        print "After Delete VBR Validate Failed"
        exit(1)

    retval = vtn_vbr.validate_vtn_at_controller("VtnOne", "ControllerFirst", presence="no")
    if retval != 0:
        print "VTN Validate Failed after VBR Deleted"
        exit(1)

    retval = vtn_vbr.delete_vtn("VtnOne")
    if retval != 0:
        print "VTN Delete Failed in coordinator"
        exit(1)

    print "DELETE CONTROLLER"
    retval = controller.delete_controller_ex("ControllerFirst")
    if retval != 0:
        print "CONTROLLER delete failed"
        exit(1)
    print "VTN->VBR->VLANMAP with no_vlan_id and logicalport_id TEST SUCCESS"
开发者ID:Ei5enheim,项目名称:vtn,代码行数:89,代码来源:vtn_vbr_vlanmap.py


示例3: test_vtn_vbr_vlanmap_no_vlanid

def test_vtn_vbr_vlanmap_no_vlanid():

    print "CREATE Controller"
    retval = controller.add_controller_ex('ControllerFirst')
    if retval != 0:
        print "TEST 6 :Controller Create Failed"
        exit(1)

    print "TEST 6 : VTenant with one VBridge one VLANMAP with vlan_id and logicalport_id"
    print           "then update vlan_id to no_vlan_id"
  # Delay for AUDIT
    time.sleep(15)
    retval=vtn_vbr.create_vtn('VtnOne')
    if retval != 0:
        print "VTN Create Failed"
        exit(1)

    retval=vtn_vbr.create_vbr('VtnOne','VbrOne','ControllerFirst')
    if retval != 0:
        print "VBR Create Failed"
        exit(1)

    retval=create_vlanmap('VtnOne','VbrOne','VlanmapOne',no_vlan=1)
    if retval != 0:
        print "VLANMAP Create Failed"
        exit(1)

    retval=validate_vlanmap_at_controller('VtnOne','VbrOne','VlanmapOne','ControllerFirst',no_vlan_id=1)
    if retval != 0:
        print "After Create VLANMAP Validate Failed"
        exit(1)

    retval=update_vlanmap('VtnOne','VbrOne','VlanmapOne',update_id=2)
    if retval != 0:
        print "VLANMAP upadte Failed"
        exit(1)

    retval=vtn_vbr.validate_vbr_at_controller('VtnOne','VbrOne','ControllerFirst')
    if retval != 0:
        print "After Create VBR Validate Failed"
        exit(1)

    retval=vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerFirst')
    if retval != 0:
        print "VTN Validate Failed"
        exit(1)

    retval = delete_vlanmap('VtnOne','VbrOne','VlanmapOne',no_vlan=1)
    if retval != 0:
        print "VLANMAP Delete Failed"
        exit(1)

    retval=validate_vlanmap_at_controller('VtnOne','VbrOne','VlanmapOne','ControllerFirst',presence="no",position=0,no_vlan_id=1)
    if retval != 0:
        print "After Delete VLANMAP Validate Failed"
        exit(1)

    retval = vtn_vbr.delete_vbr('VtnOne','VbrOne')
    if retval != 0:
        print "VBR/VTN Delete Failed"
        exit(1)

    retval=vtn_vbr.validate_vbr_at_controller('VtnOne','VbrOne','ControllerFirst',presence="no")
    if retval != 0:
        print "After Delete VBR Validate Failed"
        exit(1)

    retval=vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerFirst',presence="no")
    if retval != 0:
        print "VTN Validate Failed after VBR Deleted"
        exit(1)

    retval = vtn_vbr.delete_vtn('VtnOne')
    if retval != 0:
        print "VTN Delete Failed in coordinator"
        exit(1)

    print "DELETE CONTROLLER"
    retval=controller.delete_controller_ex('ControllerFirst')
    if retval != 0:
        print "CONTROLLER delete failed"
        exit(1)
    print "VTN->VBR->VLANMAP with vlan_id->no_vlan_id TEST SUCCESS"
开发者ID:opendaylight,项目名称:vtn,代码行数:83,代码来源:vtn_vbr_vlanmap.py


示例4: test_vbr_flowfilter_audit_1


#.........这里部分代码省略.........
    retval=vbrif_portmap.validate_vbrif_at_controller('VtnOne','VbrTwo','VbrIfTwo','ControllerFirst', presence = 'yes', position = 0)
    if retval != 0:
      print "After Create VBRIF Validate Failed"
      exit(1)

    retval=flowlistentry.create_flowlist('FlowlistOne')
    if retval != 0:
        print "FlowList Create Failed"
        exit(1)

    retval=flowlistentry.create_flowlistentry('FlowlistOne', 'FlowlistentryOne','ControllerFirst')
    if retval != 0:
        print "FlowlistEntry Create Failed"
        exit(1)

    print "****UPDATE Controller IP to invalid****"
    test_invalid_ipaddr= vtn_testconfig.ReadValues(CONTROLLERDATA,'ControllerFirst')['invalid_ipaddr']
    retval = controller.update_controller_ex('ControllerFirst',ipaddr=test_invalid_ipaddr)
    if retval != 0:
        print "controller invalid_ip update failed"
        exit(1)
  # Delay for AUDIT
    retval = controller.wait_until_state('ControllerFirst',"down")
    if retval != 0:
      print "controller state change failed"
      exit(1)

    retval=flowfilter.create_flowfilter('VtnOne|VbrOne', 'FlowfilterOne')
    if retval != 0:
        print "VBRFlowFilter Create Failed"
        exit(1)

    retval=flowfilter.create_flowfilter_entry('VtnOne|VbrOne', 'FlowfilterOne')
    if retval != 0:
        print "VBRFlowFilterEntry Create Failed"
        exit(1)

    print "****UPDATE Controller IP to Valid****"
    test_controller_ipaddr= vtn_testconfig.ReadValues(CONTROLLERDATA,'ControllerFirst')['ipaddr']
    retval = controller.update_controller_ex('ControllerFirst',ipaddr=test_controller_ipaddr)
    if retval != 0:
        print "controller valid_ip update failed"
        exit(1)
  # Delay for AUDIT
    retval = controller.wait_until_state('ControllerFirst',"up")
    if retval != 0:
      print "controller state change failed"
      exit(1)

    retval=flowfilter.validate_flowfilter_entry('VtnOne|VbrOne', 'FlowfilterOne', presence='yes', position=0)
    if retval != 0:
        print "VBRFlowFilterEntry Validate Failed at Co-ordinator"
        exit(1)

    retval=flowfilter.validate_flowfilter_at_controller('VtnOne|VbrOne', 'ControllerFirst', 'FlowfilterOne', presence='yes', position=0)
    if retval != 0:
        print "FlowFilter validation Failed at Controller"
        exit(1)

    retval = flowfilter.delete_flowfilter_entry('VtnOne|VbrOne', 'FlowfilterOne')
    if retval != 0:
       print "VBRFlowFilterEntry deletete Failed"
       exit(1)
    retval = flowfilter.delete_flowfilter('VtnOne|VbrOne', 'FlowfilterOne')
    if retval != 0:
       print "VBRFlowFilter deletete Failed"
       exit(1)

    retval=flowlistentry.delete_flowlistentry('FlowlistOne', 'FlowlistentryOne')
    if retval != 0:
      print "FlowilistEntry deletete Failed"
      exit(1)

    retval=flowlistentry.delete_flowlist('FlowlistOne')
    if retval != 0:
      print "Flowilist deletete Failed"
      exit(1)

    print "****Delete VTN****"
    retval = vtn_vbr.delete_vtn('VtnOne')
    if retval != 0:
        print "VTN Delete Failed in coordinator"
        exit(1)

    retval=flowfilter.validate_flowfilter_at_controller('VtnOne|VbrOne', 'ControllerFirst', 'FlowfilterOne', presence='no', position=0)
    if retval != 0:
      print "FlowFilter validation Failed after deleting"
      exit(1)

    retval =  vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerFirst',presence="no")
    if retval != 0:
      print "VTN Validate Failed"
      exit(1)

    print "DELETE CONTROLLER"
    retval = controller.delete_controller_ex('ControllerFirst')
    if retval != 0:
        print "CONTROLLER delete failed"
        exit(1)
    print "VBR->FLOWFILTER AUDIT_1 TEST SUCCESS"
开发者ID:SeungWookJang,项目名称:vtn-coordinator,代码行数:101,代码来源:vbr_flowfilter_audit.py


示例5: test_vtn_flowfilter

def test_vtn_flowfilter():
  print "CREATE Controller"
  retval = controller.add_controller_ex('ControllerFirst')
  if retval != 0:
    print "Controller Create Failed"
    exit(1)

  print "TEST 1 : VTN->FLOWFILTER TEST"
  # Delay for AUDIT
  retval=controller.wait_until_state('ControllerFirst', "up")
  if retval != 0:
    print "Controller state check Failed"
    exit(1)

  retval=vtn_vbr.create_vtn('VtnOne')
  if retval != 0:
    print "VTN Create Failed"
    exit(1)

  retval=vtn_vbr.create_vbr('VtnOne','VbrOne','ControllerFirst')
  if retval != 0:
    print "VTN Create Failed"
    exit(1)

  retval=vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerFirst')
  if retval != 0:
    print "VTN Validate Failed"
    exit(1)

  retval=vtn_vbr.validate_vbr_at_controller('VtnOne','VbrOne','ControllerFirst')
  if retval != 0:
    print "VBR Validate Failed"
    exit(1)

  retval=flowlistentry.create_flowlist('FlowlistOne')
  if retval != 0:
    print "FlowList Create Failed"
    exit(1)

  retval=flowlistentry.create_flowlistentry('FlowlistOne', 'FlowlistentryOne','ControllerFirst')
  if retval != 0:
    print "FlowlistEntry Create Failed"
    exit(1)

  retval=flowfilter.create_flowfilter('VtnOne', 'VTNFlowfilterOne')
  if retval != 0:
    print "VTNFlowFilter Create Failed"
    exit(1)

  retval=flowfilter.create_flowfilter_entry('VtnOne', 'VTNFlowfilterOne')
  if retval != 0:
    print "VTNFlowFilterEntry Create Failed"
    exit(1)

  retval=flowfilter.validate_flowfilter_entry('VtnOne', 'VTNFlowfilterOne', presence='yes', position=0)
  if retval != 0:
    print "VTNFlowFilterEntry Validate Failed at Co-ordinator"
    exit(1)

  retval=flowfilter.validate_flowfilter_at_controller('VtnOne', 'ControllerFirst', 'VTNFlowfilterOne', presence='yes', position=0)
  if retval != 0:
    print "FlowFilter validation Failed"
    exit(1)

  retval=flowfilter.delete_flowfilter_entry('VtnOne', 'VTNFlowfilterOne')
  if retval != 0:
    print "VTNFlowFilterEntry deletete Failed"
    exit(1)

  retval=flowfilter.delete_flowfilter('VtnOne', 'VTNFlowfilterOne')
  if retval != 0:
    print "VTNFlowFilter deletete Failed"
    exit(1)

  retval=flowlistentry.delete_flowlistentry('FlowlistOne', 'FlowlistentryOne')
  if retval != 0:
    print "FlowilistEntry deletete Failed"
    exit(1)

  retval=flowlistentry.delete_flowlist('FlowlistOne')
  if retval != 0:
    print "Flowilist deletete Failed"
    exit(1)

  retval=flowfilter.validate_flowfilter_at_controller('VtnOne', 'ControllerFirst', 'VTNFlowfilterOne', presence='no', position=0)
  if retval != 0:
    print "FlowFilter validation Failed after deleting"
    exit(1)

  retval=vtn_vbr.delete_vtn('VtnOne')
  if retval != 0:
    print "DELETE VTN Failed"
    exit(1)

  retval=vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerFirst', presence='no')
  if retval != 0:
    print "VTN Validate Failed"
    exit(1)

  print "DELETE CONTROLLER"
#.........这里部分代码省略.........
开发者ID:SeungWookJang,项目名称:vtn-coordinator,代码行数:101,代码来源:vtn_flowfilter.py


示例6: test_multi_ctr_mininet_ping


#.........这里部分代码省略.........
    if retval != 0:
        print "After Delete VBRIF3 Portmap Validate Failed"
        exit(1)

    retval = vbrif_portmap.delete_portmap('VtnOne', 'VbrOne', 'MultiCtrVbrIfOne')
    if retval != 0:
        print "VBRIF1 portmap Delete Failed"
        exit(1)

    retval = vbrif_portmap.validate_vbrif_portmap_at_controller('VtnOne', 'VbrOne', 'MultiCtrVbrIfOne', 'ControllerFirst', presence="no");
    if retval != 0:
        print "After Delete VBRIF1 Portmap Validate Failed"
        exit(1)

    retval = vbrif_portmap.delete_vbrif('VtnOne', 'VbrOne', 'MultiCtrVbrIfOne')
    if retval != 0:
        print "VTN1->VBR1->VBRIF1 Delete Failed"
        exit(1)

    retval = vbrif_portmap.validate_vbrif_at_controller('VtnOne', 'VbrOne', 'MultiCtrVbrIfOne', 'ControllerFirst', presence="no")
    if retval != 0:
        print "After Delete VBRIFONE Validate Failed"
        exit(1)

    retval = vbrif_portmap.delete_vbrif('VtnOne', 'VbrOne', 'VbrIfTwo')
    if retval != 0:
        print "VTN1->VBR1->VBRIF2 Delete Failed"
        exit(1)

    retval = vbrif_portmap.validate_vbrif_at_controller('VtnOne', 'VbrOne', 'VbrIfTwo', 'ControllerFirst', presence="no")
    if retval != 0:
        print "After Delete VBRIFTWO Validate Failed"
        exit(1)

    retval = vbrif_portmap.delete_vbrif('VtnOne', 'VbrTwo', 'MultiCtrVbrIfThree')
    if retval != 0:
        print "VTN1->VBR2->VBRIF3 Delete Failed"
        exit(1)

    retval = vbrif_portmap.validate_vbrif_at_controller('VtnOne', 'VbrTwo', 'MultiCtrVbrIfThree', 'ControllerSecond', presence="no")
    if retval != 0:
        print "After Delete VBRIFTHREE Validate Failed"
        exit(1)

    retval = vbrif_portmap.delete_vbrif('VtnOne', 'VbrTwo', 'VbrIfFour')
    if retval != 0:
        print "VTN1->VBR2->VBRIF4 Delete Failed"
        exit(1)

    retval = vbrif_portmap.validate_vbrif_at_controller('VtnOne', 'VbrTwo', 'VbrIfFour', 'ControllerSecond', presence="no")
    if retval != 0:
        print "After Delete VBRIFFOUR Validate Failed"
        exit(1)

    retval = vtn_vbr.delete_vbr('VtnOne', 'VbrOne')
    if retval != 0:
        print "VBR/VTN Delete Failed"
        exit(1)

    retval = vtn_vbr.validate_vbr_at_controller('VtnOne', 'VbrOne', 'ControllerFirst', presence="no")
    if retval != 0:
        print "After Delete VBR1 Validate Failed"
        exit(1)

    retval = vtn_vbr.delete_vbr('VtnOne', 'VbrTwo')
    if retval != 0:
        print "VBR/VTN Delete Failed"
        exit(1)

    retval = vtn_vbr.validate_vbr_at_controller('VtnOne', 'VbrTwo', 'ControllerSecond', presence="no")
    if retval != 0:
        print "After Delete VBR2 Validate Failed"
        exit(1)

    retval = vtn_vbr.validate_vtn_at_controller('VtnOne', 'ControllerFirst', presence="no")
    if retval != 0:
        print "VTN Validate Failed"
        exit(1)

    retval = vtn_vbr.validate_vtn_at_controller('VtnOne', 'ControllerSecond', presence="no")
    if retval != 0:
        print "VTN Validate Failed"
        exit(1)

    retval = vtn_vbr.delete_vtn('VtnOne')
    if retval != 0:
        print "VTN Delete Failed in coordinator"
        exit(1)

    print "DELETE CONTROLLER"
    retval = controller.delete_controller_ex('ControllerFirst')
    if retval != 0:
        print "CONTROLLER1 delete failed"
        exit(1)

    retval = controller.delete_controller_ex('ControllerSecond')
    if retval != 0:
        print "CONTROLLER2 delete failed"
        exit(1)
    print "MININET PING MULTI CONTROLLER TEST SUCCESS"
开发者ID:OnStack,项目名称:cloudexchange,代码行数:101,代码来源:multi_ctr_mininet.py


示例7: test_vtn_vbr_vlanmap_no_vlanid_multi_controller


#.........这里部分代码省略.........
    if retval != 0:
        print "VLANMAP2 upadte Failed"
        exit(1)

    retval=vtn_vbr_vlanmap.validate_vlanmap_update('VtnOne','VbrOne','VlanmapOne','ControllerFirst',no_vlan_id=1)
    if retval != 0:
        print "After update VLANMAP Validate Failed"
        exit(1)

    retval=vtn_vbr_vlanmap.validate_vlanmap_update('VtnOne','VbrThree','VlanmapTwo','ControllerSecond',no_vlan_id=1)
    if retval != 0:
        print "After update VLANMAP Validate Failed"
        exit(1)

    retval=vtn_vbr.validate_vbr_at_controller('VtnOne','VbrOne','ControllerFirst')
    if retval != 0:
        print "After Create VBR Validate Failed"
        exit(1)

    retval=vtn_vbr.validate_vbr_at_controller('VtnOne','VbrThree','ControllerSecond')
    if retval != 0:
        print "After Create VBR Validate Failed"
        exit(1)

    retval=vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerFirst')
    if retval != 0:
        print "VTN Validate Failed at controller1"
        exit(1)

    retval=vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerSecond')
    if retval != 0:
        print "VTN Validate Failed at controller2"
        exit(1)

    retval = vtn_vbr_vlanmap.delete_vlanmap('VtnOne','VbrOne','VlanmapOne',no_vlan=1)
    if retval != 0:
        print "VLANMAP1 Delete Failed"
        exit(1)

    retval = vtn_vbr_vlanmap.delete_vlanmap('VtnOne','VbrThree','VlanmapTwo',no_vlan=1)
    if retval != 0:
        print "VLANMAP3 Delete Failed"
        exit(1)

    retval=vtn_vbr_vlanmap.validate_vlanmap_at_controller('VtnOne','VbrOne','VlanmapOne','ControllerFirst',presence="no",position=0,no_vlan_id=1)
    if retval != 0:
        print "After Delete VLANMAP1 Validate Failed"
        exit(1)

    retval=vtn_vbr_vlanmap.validate_vlanmap_at_controller('VtnOne','VbrThree','VlanmapTwo','ControllerSecond',presence="no",position=0,no_vlan_id=1)
    if retval != 0:
        print "After Delete VLANMAP3 Validate Failed"
        exit(1)

    retval = vtn_vbr.delete_vbr('VtnOne','VbrOne')
    if retval != 0:
        print "VBR1/VTN Delete Failed"
        exit(1)

    retval = vtn_vbr.delete_vbr('VtnOne','VbrThree')
    if retval != 0:
        print "VBR3/VTN Delete Failed"
        exit(1)

    retval=vtn_vbr.validate_vbr_at_controller('VtnOne','VbrOne','ControllerFirst',presence="no")
    if retval != 0:
        print "After Delete VBR1 Validate Failed"
        exit(1)

    retval=vtn_vbr.validate_vbr_at_controller('VtnOne','VbrThree','ControllerSecond',presence="no")
    if retval != 0:
        print "After Delete VBR3 Validate Failed"
        exit(1)

    retval=vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerFirst',presence="no")
    if retval != 0:
        print "VTN Validate Failed after VBR Deleted at controller1"
        exit(1)

    retval=vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerSecond',presence="no")
    if retval != 0:
        print "VTN Validate Failed after VBR Deleted at controller2"
        exit(1)

    retval = vtn_vbr.delete_vtn('VtnOne')
    if retval != 0:
        print "VTN Delete Failed in coordinator"
        exit(1)

    print "DELETE CONTROLLER"
    retval=controller.delete_controller_ex('ControllerFirst')
    if retval != 0:
        print "CONTROLLER1 delete failed"
        exit(1)

    retval=controller.delete_controller_ex('ControllerSecond')
    if retval != 0:
        print "CONTROLLER2 delete failed"
        exit(1)
    print "VTN->VBR->VLANMAP with vlan_id->no_vlan_id with multi-controller TEST SUCCESS"
开发者ID:OnStack,项目名称:cloudexchange,代码行数:101,代码来源:vtn_vbr_vlanmap_multi_controller.py


示例8: test_multi_vtn_with_vbr_multi_controller_audit_test


#.........这里部分代码省略.........
    if retval != 0:
        print "VBR3/VTN4 Delete Failed"
        exit(1)

    print "****UPDATE Controller IP to Valid****"
    test_controller_ipaddr= vtn_testconfig.ReadValues(CONTROLLERDATA,'ControllerFirst')['ipaddr']
    retval = controller.update_controller_ex('ControllerFirst',ipaddr=test_controller_ipaddr)
    if retval != 0:
        print "controller1 valid_ip update failed"
        exit(1)
  # Delay for AUDIT
    retval = controller.wait_until_state('ControllerFirst',"up")
    if retval != 0:
      print "Controller state check failed"
      exit(1)

    test_controller_ipaddr= vtn_testconfig.ReadValues(CONTROLLERDATA,'ControllerSecond')['ipaddr']
    retval = controller.update_controller_ex('ControllerSecond',ipaddr=test_controller_ipaddr)
    if retval != 0:
        print "controller2 valid_ip update failed"
        exit(1)
  # Delay for AUDIT
    retval = controller.wait_until_state('ControllerSecond',"up")
    if retval != 0:
      print "Controller state check failed"
      exit(1)

    retval =  vtn_vbr.validate_vbr_at_controller('VtnOne','VbrOne','ControllerFirst',presence="no")
    if retval != 0:
        print "VBR1/VTN1 Validate Failed"
        exit(1)

    retval =  vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerFirst',presence="no")
    if retval != 0:
        print "VTN1 Validate Failed"
        exit(1)


    retval =  vtn_vbr.validate_vbr_at_controller('VtnTwo','VbrOne','ControllerFirst',presence="no")
    if retval != 0:
        print "VBR1/VTN2 Validate Failed"
        exit(1)

    retval =  vtn_vbr.validate_vtn_at_controller('VtnTwo','ControllerFirst',presence="no")
    if retval != 0:
        print "VTN2 Validate Failed"
        exit(1)

    retval =  vtn_vbr.validate_vbr_at_controller('VtnThree','VbrThree','ControllerSecond',presence="no")
    if retval != 0:
        print "VBR3/VTN3 Validate Failed"
        exit(1)

    retval =  vtn_vbr.validate_vtn_at_controller('VtnThree','ControllerSecond',presence="no")
    if retval != 0:
        print "VTN3 Validate Failed"
        exit(1)

    retval =  vtn_vbr.validate_vbr_at_controller('VtnFour','VbrThree','ControllerSecond',presence="no")
    if retval != 0:
        print "VBR3/VTN4 Validate Failed"
        exit(1)

    retval =  vtn_vbr.validate_vtn_at_controller('VtnFour','ControllerSecond',presence="no")
    if retval != 0:
        print "VTN4 Validate Failed"
        exit(1)

    retval = vtn_vbr.delete_vtn('VtnOne')
    if retval != 0:
        print "VTN1 Delete Failed in coordinator"
        exit(1)

    retval = vtn_vbr.delete_vtn('VtnTwo')
    if retval != 0:
        print "VTN2 Delete Failed in coordinator"
        exit(1)

    retval = vtn_vbr.delete_vtn('VtnThree')
    if retval != 0:
        print "VTN3 Delete Failed in coordinator"
        exit(1)

    retval = vtn_vbr.delete_vtn('VtnFour')
    if retval != 0:
        print "VTN4 Delete Failed in coordinator"
        exit(1)

    print "DELETE CONTROLLER"
    retval = controller.delete_controller_ex('ControllerFirst')
    if retval != 0:
        print "CONTROLLER1 delete failed"
        exit(1)

    retval = controller.delete_controller_ex('ControllerSecond')
    if retval != 0:
        print "CONTROLLER2 delete failed"
        exit(1)

    print "MULTI VTN->VBR MULTI_CONTROLLER AUDIT TEST SUCCESS"
开发者ID:OnStack,项目名称:cloudexchange,代码行数:101,代码来源:vtn_vbr_audit_multi_controller.py


示例9: test_vtn_vbr_vlanmap_multi_controller


#.........这里部分代码省略.........
        print "VLANMAP update Failed"
        exit(1)

    retval=vtn_vbr_vlanmap.validate_vlanmap_update('VtnOne','VbrOne','VlanmapOne','ControllerFirst',no_vlan_id=0)
    if retval != 0:
        print "After update VLANMAP Validate Failed"
        exit(1)

    retval=vtn_vbr_vlanmap.validate_vlanmap_update('VtnOne','VbrThree','VlanmapTwo','ControllerSecond',no_vlan_id=0)
    if retval != 0:
        print "After update VLANMAP Validate Failed"
        exit(1)

    retval=vtn_vbr.validate_vbr_at_controller('VtnOne','VbrOne','ControllerFirst')
    if retval != 0:
        print "After Create VBR Validate Failed"
        exit(1)

    retval=vtn_vbr.validate_vbr_at_controller('VtnOne','VbrThree','ControllerSecond')
    if retval != 0:
        print "After Create VBR Validate Failed"
        exit(1)

    retval=vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerFirst')
    if retval != 0:
        print "VTN Validate Failed"
        exit(1)

    retval=vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerSecond')
    if retval != 0:
        print "VTN Validate Failed"
        exit(1)

    retval = vtn_vbr_vlanmap.delete_vlanmap('VtnOne','VbrOne','VlanmapOne',no_vlan=0)
    if retval != 0:
        print "VLANMAP Delete Failed"
        exit(1)

    retval = vtn_vbr_vlanmap.delete_vlanmap('VtnOne','VbrThree','VlanmapTwo',no_vlan=0)
    if retval != 0:
        print "VLANMAP Delete Failed"
        exit(1)

    retval=vtn_vbr_vlanmap.validate_vlanmap_at_controller('VtnOne','VbrOne','VlanmapOne','ControllerFirst',presence="no",position=0,no_vlan_id=0)
    if retval != 0:
        print "After Delete VLANMAP Validate Failed"
        exit(1)

    retval=vtn_vbr_vlanmap.validate_vlanmap_at_controller('VtnOne','VbrOne','VlanmapTwo','ControllerSecond',presence="no",position=0,no_vlan_id=0)
    if retval != 0:
        print "After Delete VLANMAP Validate Failed"
        exit(1)

    retval = vtn_vbr.delete_vbr('VtnOne','VbrOne')
    if retval != 0:
        print "VBR/VTN Delete Failed"
        exit(1)

    retval = vtn_vbr.delete_vbr('VtnOne','VbrThree')
    if retval != 0:
        print "VBR/VTN Delete Failed"
        exit(1)

    retval=vtn_vbr.validate_vbr_at_controller('VtnOne','VbrOne','ControllerFirst',presence="no")
    if retval != 0:
        print "After Delete VBR Validate Failed"
        exit(1)

    retval=vtn_vbr.validate_vbr_at_controller('VtnOne','VbrThree','ControllerSecond',presence="no")
    if retval != 0:
        print "After Delete VBR Validate Failed"
        exit(1)

    retval=vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerFirst',presence="no")
    if retval != 0:
        print "VTN Validate Failed after VBR Deleted"
        exit(1)

    retval=vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerSecond',presence="no")
    if retval != 0:
        print "VTN Validate Failed after VBR Deleted"
        exit(1)

    retval = vtn_vbr.delete_vtn('VtnOne')
    if retval != 0:
        print "VTN Delete Failed in coordinator"
        exit(1)

    print "DELETE CONTROLLER1"
    retval=controller.delete_controller_ex('ControllerFirst')
    if retval != 0:
        print "CONTROLLER delete failed"
        exit(1)

    print "DELETE CONTROLLER2"
    retval=controller.delete_controller_ex('ControllerSecond')
    if retval != 0:
        print "CONTROLLER delete failed"
        exit(1)
    print "VTN->VBR->VLANMAP no vlan_id with multi-controller TEST SUCCESS"
开发者ID:OnStack,项目名称:cloudexchange,代码行数:101,代码来源:vtn_vbr_vlanmap_multi_controller.py


示例10: test_vtn_vbr_multi_vlanmap_multi_controller


#.........这里部分代码省略.........
        exit(1)

    retval=vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerFirst')
    if retval != 0:
        print "VTN Validate Failed"
        exit(1)

    retval=vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerSecond')
    if retval != 0:
        print "VTN Validate Failed"
        exit(1)

    retval = vtn_vbr_vlanmap.delete_vlanmap('VtnOne','VbrOne','VlanmapOne',no_vlan=0)
    if retval != 0:
        print "VLANMAP1 Delete Failed"
        exit(1)

    retval = vtn_vbr_vlanmap.delete_vlanmap('VtnOne','VbrOne','VlanmapTwo',no_vlan=1)
    if retval != 0:
        print "VLANMAP2 Delete Failed"
        exit(1)

    retval = vtn_vbr_vlanmap.delete_vlanmap('VtnOne','VbrThree','VlanmapThree',no_vlan=0)
    if retval != 0:
        print "VLANMAP3 Delete Failed"
        exit(1)

    retval = vtn_vbr_vlanmap.delete_vlanmap('VtnOne','VbrThree','VlanmapFour',no_vlan=1)
    if retval != 0:
        print "VLANMAP4 Delete Failed"
        exit(1)

    retval=vtn_vbr_vlanmap.validate_vlanmap_at_controller('VtnOne','VbrOne','VlanmapOne','ControllerFirst',presence="no",position=0,no_vlan_id=0)
    if retval != 0:
        print "After Delete VLANMAP1 Validate Failed"
        exit(1)

    retval=vtn_vbr_vlanmap.validate_vlanmap_at_controller('VtnOne','VbrOne','VlanmapTwo','ControllerFirst',presence="no",position=1,no_vlan_id=1)
    if retval != 0:
        print "After Delete VLANMAP2 Validate Failed"
        exit(1)

    retval=vtn_vbr_vlanmap.validate_vlanmap_at_controller('VtnOne','VbrThree','VlanmapThree','ControllerSecond',presence="no",position=0,no_vlan_id=0)
    if retval != 0:
        print "After Delete VLANMAP3 Validate Failed"
        exit(1)

    retval=vtn_vbr_vlanmap.validate_vlanmap_at_controller('VtnOne','VbrThree','VlanmapFour','ControllerSecond',presence="no",position=1,no_vlan_id=1)
    if retval != 0:
        print "After Delete VLANMAP4 Validate Failed"
        exit(1)

    retval = vtn_vbr.delete_vbr('VtnOne','VbrOne')
    if retval != 0:
        print "VBR/VTN Delete Failed"
        exit(1)

    retval = vtn_vbr.delete_vbr('VtnOne','VbrThree')
    if retval != 0:
        print "VBR/VTN Delete Failed"
        exit(1)

    retval=vtn_vbr.validate_vbr_at_controller('VtnOne','VbrOne','ControllerFirst',presence="no")
    if retval != 0:
        print "After Delete VBROne Validate Failed"
        exit(1)

    retval=vtn_vbr.validate_vbr_at_controller('VtnOne','VbrThree','ControllerSecond',presence="no")
    if retval != 0:
        print "After Delete VBRTwo Validate Failed"
        exit(1)

    retval=vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerFirst',presence="no")
    if retval != 0:
        print "VTN Validate Failed after VBR Deleted"
        exit(1)

    retval=vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerSecond',presence="no")
    if retval != 0:
        print "VTN Validate Failed after VBR Deleted"
        exit(1)

    retval = vtn_vbr.delete_vtn('VtnOne')
    if retval != 0:
        print "VTN Delete Failed in coordinator"
        exit(1)

    print "DELETE CONTROLLER1"
    retval=controller.delete_controller_ex('ControllerFirst')
    if retval != 0:
        print "CONTROLLER1 delete failed"
        exit(1)

    print "DELETE CONTROLLER2"
    retval=controller.delete_controller_ex('ControllerSecond')
    if retval != 0:
        print "CONTROLLER2 delete failed"
        exit(1)

    print "VTN->VBR->TWO VLANMAP with multi_controller TEST SUCCESS"
开发者ID:OnStack,项目名称:cloudexchange,代码行数:101,代码来源:vtn_vbr_vlanmap_multi_controller.py


示例11: test_multi_vtn_with_vbr_audit_test


#.........这里部分代码省略.........
        exit(1)

    retval = vtn_vbr.create_vbr('VtnTwo','VbrOne','ControllerFirst')
    if retval != 0:
        print "VTN Create Failed"
        exit(1)

    retval =  vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerFirst',position=0)
    if retval != 0:
        print "VTN Validate Failed"
        exit(1)

    retval =  vtn_vbr.validate_vtn_at_controller('VtnTwo','ControllerFirst',position=1)
    if retval != 0:
        print "VTN Validate Failed"
        exit(1)

    retval =  vtn_vbr.validate_vbr_at_controller('VtnOne','VbrOne','ControllerFirst')
    if retval != 0:
        print "VBR Validate Failed"
        exit(1)

    retval =  vtn_vbr.validate_vbr_at_controller('VtnTwo','VbrOne','ControllerFirst')
    if retval != 0:
        print "VBR Validate Failed"
        exit(1)

    print "****UPDATE Controller IP to invalid****"
    test_invalid_ipaddr= vtn_testconfig.ReadValues(CONTROLLERDATA,'ControllerFirst')['invalid_ipaddr']
    retval = controller.update_controller_ex('ControllerFirst',ipaddr=test_invalid_ipaddr)
    if retval != 0:
        print "controller invalid_ip update failed"
        exit(1)
  # Delay for AUDIT
    retval = controller.wait_until_state('ControllerFirst',"down")
    if retval != 0:
      print "controller state change failed"
      exit(1)

    retval = vtn_vbr.delete_vbr('VtnOne','VbrOne')
    if retval != 0:
        print "VBR/VTN Delete Failed"
        exit(1)

    retval = vtn_vbr.delete_vbr('VtnTwo','VbrOne')
    if retval != 0:
        print "VBR/VTN Delete Failed"
        exit(1)

    print "****UPDATE Controller IP to Valid****"
    test_controller_ipaddr= vtn_testconfig.ReadValues(CONTROLLERDATA,'ControllerFirst')['ipaddr']
    retval = controller.update_controller_ex('ControllerFirst',ipaddr=test_controller_ipaddr)
    if retval != 0:
        print "controller valid_ip update failed"
        exit(1)
  # Delay for AUDIT
    retval = controller.wait_until_state('ControllerFirst',"up")
    if retval != 0:
      print "controller state change failed"
      exit(1)

    retval =  vtn_vbr.validate_vbr_at_controller('VtnOne','VbrOne','ControllerFirst',presence="no")
    if retval != 0:
        print "VBR Validate Failed"
        exit(1)

    retval =  vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerFirst',presence="no")
    if retval != 0:
        print "VTN Validate Failed"
        exit(1)


    retval =  vtn_vbr.validate_vbr_at_controller('VtnTwo','VbrOne','ControllerFirst',presence="no")
    if retval != 0:
        print "VBR Validate Failed"
        exit(1)

    retval =  vtn_vbr.validate_vtn_at_controller('VtnTwo','ControllerFirst',presence="no")
    if retval != 0:
        print "VTN Validate Failed"
        exit(1)

    retval = vtn_vbr.delete_vtn('VtnOne')
    if retval != 0:
        print "VTN Delete Failed in coordinator"
        exit(1)


    retval = vtn_vbr.delete_vtn('VtnTwo')
    if retval != 0:
        print "VTN Delete Failed in coordinator"
        exit(1)

    print "DELETE CONTROLLER"
    retval = controller.delete_controller_ex('ControllerFirst')
    if retval != 0:
        print "CONTROLLER delete failed"
        exit(1)

    print "MULTI VTN->VBR AUDIT TEST SUCCESS"
开发者ID:OnStack,项目名称:cloudexchange,代码行数:101,代码来源:vtn_vbr_audit.py


示例12: test_vtn_vbr_audit_1

def test_vtn_vbr_audit_1():

    print "****CREATE Controller with valid IP****"
    retval = controller.add_controller_ex('ControllerFirst')
    if retval != 0:
        print "Controller Create Failed"
        exit(1)

    print """TEST 1 : create VTN and VBR when controller is up
             change the controller status to down delete VTN and VBR
             trigger Audit"""
  # Delay for AUDIT
    retval = controller.wait_until_state('ControllerFirst',"up")
    if retval != 0:
      print "controller state change failed"
      exit(1)
    print "****Create VTN****"
    retval = vtn_vbr.create_vtn('VtnOne')
    if retval != 0:
        print "VTN Create Failed"
        exit(1)

    print "****Create VBR****"
    retval = vtn_vbr.create_vbr('VtnOne','VbrOne','ControllerFirst')
    if retval != 0:
        print "VTN Create Failed"
        exit(1)


    retval =  vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerFirst')
    if retval != 0:
        print "VTN Validate Failed"
        exit(1)


    retval =  vtn_vbr.validate_vbr_at_controller('VtnOne','VbrOne','ControllerFirst')
    if retval != 0:
        print "VBR Validate Failed"
        exit(1)

    print "****UPDATE Controller IP to invalid****"
    test_invalid_ipaddr= vtn_testconfig.ReadValues(CONTROLLERDATA,'ControllerFirst')['invalid_ipaddr']
    retval = controller.update_controller_ex('ControllerFirst',ipaddr=test_invalid_ipaddr)
    if retval != 0:
        print "controller invalid_ip update failed"
        exit(1)
  # Delay for AUDIT
    retval = controller.wait_until_state('ControllerFirst',"down")
    if retval != 0:
      print "controller state change failed"
      exit(1)

    print "****Delete VBR****"
    retval = vtn_vbr.delete_vbr('VtnOne','VbrOne')
    if retval != 0:
        print "VBR/VTN Delete Failed"
        exit(1)

    print "****Delete VTN****"
    retval = vtn_vbr.delete_vtn('VtnOne')
    if retval != 0:
        print "VTN Delete Failed in coordinator"
        exit(1)

    print "****UPDATE Controller IP to Valid****"
    test_controller_ipaddr= vtn_testconfig.ReadValues(CONTROLLERDATA,'ControllerFirst')['ipaddr']
    retval = controller.update_controller_ex('ControllerFirst',ipaddr=test_controller_ipaddr)
    if retval != 0:
        print "controller valid_ip update failed"
        exit(1)
  # Delay for AUDIT
    retval = controller.wait_until_state('ControllerFirst',"up")
    if retval != 0:
      print "controller state change failed"
      exit(1)

    retval =  vtn_vbr.validate_vbr_at_controller('VtnOne','VbrOne','ControllerFirst',presence="no")
    if retval != 0:
        print "VBR Validate Failed"
        exit(1)

    retval =  vtn_vbr.validate_vtn_at_controller('VtnOne','ControllerFirst',presence="no")
    if retval != 0:
        print "VTN Validate Failed"
        exit(1)


    print "DELETE CONTROLLER"
    retval = controller.delete_controller_ex('ControllerFirst')
    if retval != 0:
        print "CONTROLLER delete failed"
        exit(1)
    print "VTN->VBR AUDIT TEST SUCCESS"
开发者ID:OnStack,项目名称:cloudexchange,代码行数:93,代码来源:vtn_vbr_audit.py


示例13: negative_vbrif_flowfilter_out


#.........这里部分代码省略.........

  retval=flowlistentry.create_flowlist('FlowlistOne')
  if retval != 0:
    print "FlowList Create Failed"
    exit(1)

  retval=flowlistentry.create_flowlistentry('FlowlistOne', 'FlowlistentryOne','ControllerFirst')
  if retval != 0:
    print "FlowlistEntry Create Failed"
    exit(1)

  retval=flowfilter.create_flowfilter('VtnOne|VbrOne|VbrIfOne', 'FlowfilterOneOut')
  if retval != 0:
    print "VBRFlowFilter Create Failed"
    exit(1)

  retval=flowfilter.create_flowfilter_entry('VtnOne|VbrOne|VbrIfOne', 'FlowfilterOneOut')
  if retval != 0:
    print "VBRFlowFilterEntry Create Failed"
    exit(1)

  retval=flowfilter.validate_flowfilter_entry('VtnOne|VbrOne|VbrIfOne', 'FlowfilterOneOut', presence='yes', position=0)
  if retval != 0:
    print "VBRFlowFilterEntry Validation at Co-ordinator Failed "
    exit(1)

  retval=flowfilter.validate_flowfilter_at_controller('VtnOne|VbrOne|VbrIfOne', 'ControllerFirst', 'FlowfilterOneOut', presence='yes', position=0)
  if retval != 0:
    print "FlowFilter validation at Controller Failed"
    exit(1)

  retval=vtn_vbr.create_vbr('VtnOne','VbrThree','ControllerFirst')
  if retval != 0:
    print "VTN Create Failed"
    exit(1)

  retval=vbrif_portmap.create_vbrif('VtnOne','VbrThree', 'VbrIfThree')
  if retval != 0:
    print "VBRIF Create Failed"
    exit(1)

  retval=vbrif_portmap.create_portmap('VtnOne','VbrThree','VbrIfThree');
  if retval != 0:
    print "Portmap Create Failed"
    exit(1)

  retval=flowfilter.update_flowfilter_entry('VtnOne|VbrOne|VbrIfOne', 'FlowfilterOneOut', 'NegativeFlowfilterOne')
  if retval != 0:

    print "VBRFIFlowFilterEntry Negative test case DSCP,Priority  Failed"
    print "Because  DSCP range was up to (0-63) and priority range (0-7) its more than higher its showing Bad command so test failed "
    exit(1)

  retval=flowfilter.validate_flowfilter_entry('VtnOne|VbrOne|VbrIfOne', 'FlowfilterOneOut|NegativeFlowfilterOne', presence='yes', position=0)
  if retval != 0:
    print retval
    print "VBRFIFlowFilterEntry Updatation Validate Failed at Co-ordinator"
    exit(1)

  retval=flowfilter.delete_flowfilter_entry('VtnOne|VbrOne|VbrIfOne', 'FlowfilterOneOut')
  if retval != 0:
    print "VBRFlowFilterEntry deletete Failed"
    exit(1)

  retval=flowfilter.delete_flowfilter('VtnOne|VbrOne|VbrIfOne', 'FlowfilterOneOut')
  if retval != 0:
    print "VBRFlowFilter deletete Failed"
    exit(1)

  retval=flowlistentry.delete_flowlistentry('FlowlistOne', 'FlowlistentryOne')
  if retval != 0:
    print "FlowilistEntry deletete Failed"
    exit(1)

  retval=flowlistentry.delete_flowlist('FlowlistOne')
  if retval != 0:
    print "Flowilist deletete Faile 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python vtn_vbr.validate_vbr_at_controller函数代码示例发布时间:2022-05-26
下一篇:
Python vtn_vbr.create_vtn函数代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap