|
|
Step 2 Compile the CiscoVpnServiceModel.idl, CiscoVsmExceptions.idl, CiscoVsmBrowser.idl, CiscoVsmFWCreator.idl, CiscoVsmFWModifier.idl, and CiscoVsmSRCreator.idl files with your IDL compiler to produce the respective versions of the CiscoVpnServiceModel, CiscoVsmExceptions, CiscoVsmBrowser, CiscoVsmFWCreator, CiscoVsmFWModifier, CiscoVsmSRCreator modules that are compatible with the target language of your client-source code.
Step 3 Use include or import directives, as appropriate, to ensure the target-language contents generated from your IDL files are available to your executable client-code for its VSM usage.
Step 4 Using the process described in the "Binding to Servers" section and, more specifically, the "VpnInvServer" section, add code to your client-application code that contacts the CORBA Naming Service to bind to the CORBA VpnInvServer object. This returns an object reference to the CiscoVpnServiceModel::VsmServer interface, which is assigned to the vsmServerPtr variable in the sample code. The CORBA context tree is described in "Context Tree" section.
Step 5 With the CiscoVpnServiceModel::VsmServer object, execute either the getVpnInvMrg() or getVpnInvMrgWithAuthentication() operation to get an instance of the VpnInvMgr interface.
Step 6 With the VpnInvMgr constructor operations, construct VSM creator or modifier elements as needed to support the VPN implementation scheme chosen for your client application and add them to or update them in the VPN Inventory repository.
Step 7 With the necessary VSM elements defined, execute the VpnInvMgr::newVPNConnectivityCreator() operation to get a CiscoVsmSRCreator::VsmVPNConnectivityCreator object, or execute the VpnInvMgr::newVPNServiceModifier() to get a CiscoVsmSRCreator::VsmVPNServiceModifier object. With these objects you can, respectively, create a new CiscoVsmBrowser::VsmSRVC object or modify an existing one to create or modify a VPN service.
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Fri Sep 22 20:18:03 PDT 2000
Copyright 1989-2000©Cisco Systems Inc.