Example #1
0
 def wizard_mode_input_args(self):
     self.autonomous_system_number = setAutonomousSystemNumber.input_key_args('')
     reflector_ids = add_mos('Add a Bgp Router Reflector', createBgpRouteReflector.input_key_args)
     for reflector_id in reflector_ids:
         self.reflector_id.append(reflector_id['key_args'])
     pod_policy_group = add_mos('Create a Pod Policy Group', createPodPolicyGroup.input_key_args, createPodPolicyGroup.input_optional_args, do_first=True, once=True)
     self.pod_policy_group['name'] = pod_policy_group['key_args']
     self.pod_policy_group['optional_args'] = pod_policy_group['opt_args']
     self.routed_outside['name'] = createRoutedOutside.input_key_args('')
     self.routed_outside['optional_args'] = createRoutedOutside.input_optional_args()
     self.node_profile['name'] = createNodesAndInterfacesProfile.input_key_args('')
     self.node_profile['optional_args'] = createNodesAndInterfacesProfile.input_optional_args()
     self.leaf_id, self.router_id = createNodes.input_key_args('')
     self.interface_profile['name'] = createInterfaceProfile.input_key_args('')
     self.interface_profile['leaf_id'], self.interface_profile['eth_num'], self.interface_profile['ip_address'] = createRoutedInterfaceProfile.input_key_args('')
     self.interface_profile['optional_args'] = createRoutedInterfaceProfile.input_optional_args()
     self.external_network_epg['name'] = createExternalNetwork.input_key_args('')
     self.external_network_epg['optional_args'] = createExternalNetwork.input_optional_args()
     self.provider_contract['name'] = createL3EpgProviderOrConsumerContract.input_key_args(msg='', type_known=True)[0]
     self.provider_contract['optional_args'] = createL3EpgProviderOrConsumerContract.input_optional_args('provided')
     self.consumer_contract['name'] = createL3EpgProviderOrConsumerContract.input_key_args(msg='', type_known=True)[0]
     self.consumer_contract['optional_args'] = createL3EpgProviderOrConsumerContract.input_optional_args('consumed')
     self.private_network['name'] = setDefaultSettingForPrivateNetwork.input_key_args('')
     self.private_network['optional_args'] = setDefaultSettingForPrivateNetwork.input_optional_args()
     self.bridge_domain = associateL3OutsideNetworkToBD.input_key_args('')
Example #2
0
 def wizard_mode_input_args(self):
     self.routed_outside['name'] = createRoutedOutside.input_key_args()
     self.routed_outside[
         'optional_args'] = createRoutedOutside.input_optional_args()
     self.node_profile[
         'name'] = createNodesAndInterfacesProfile.input_key_args()
     self.node_profile[
         'optional_args'] = createNodesAndInterfacesProfile.input_optional_args(
         )
     self.leaf_id, self.router_id = createNodes.input_key_args()
     self.static_route['prefix'] = createStaticRoute.input_key_args()
     self.static_route[
         'optional_args'] = createStaticRoute.input_optional_args()
     self.interface_profile['name'] = createInterfaceProfile.input_key_args(
     )
     self.interface_profile['leaf_id'], self.interface_profile[
         'eth_num'], self.interface_profile[
             'ip_address'] = createRoutedInterfaceProfile.input_key_args('')
     self.interface_profile[
         'optional_args'] = createRoutedInterfaceProfile.input_optional_args(
         )
     self.external_network_epg[
         'name'] = createExternalNetwork.input_key_args('')
     self.external_network_epg[
         'optional_args'] = createExternalNetwork.input_optional_args()
     self.consumer_contract[
         'name'] = createL3EpgProviderOrConsumerContract.input_key_args(
             msg='', type_known=True)[0]
     self.consumer_contract[
         'optional_args'] = createL3EpgProviderOrConsumerContract.input_optional_args(
             'consumed')
 def wizard_mode_input_args(self):
     self.routed_outside['name'] = createRoutedOutside.input_key_args()
     self.routed_outside['optional_args'] = createRoutedOutside.input_optional_args()
     self.node_profile['name'] = createNodesAndInterfacesProfile.input_key_args()
     self.node_profile['optional_args'] = createNodesAndInterfacesProfile.input_optional_args()
     self.leaf_id, self.router_id = createNodes.input_key_args()
     self.static_route['prefix'] = createStaticRoute.input_key_args()
     self.static_route['optional_args'] = createStaticRoute.input_optional_args()
     self.interface_profile['name'] = createInterfaceProfile.input_key_args()
     self.interface_profile['leaf_id'], self.interface_profile['eth_num'], self.interface_profile['ip_address'] = createRoutedInterfaceProfile.input_key_args('')
     self.interface_profile['optional_args'] = createRoutedInterfaceProfile.input_optional_args()
     self.external_network_epg['name'] = createExternalNetwork.input_key_args('')
     self.external_network_epg['optional_args'] = createExternalNetwork.input_optional_args()
     self.consumer_contract['name'] = createL3EpgProviderOrConsumerContract.input_key_args(msg='', type_known=True)[0]
     self.consumer_contract['optional_args'] = createL3EpgProviderOrConsumerContract.input_optional_args('consumed')