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.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('')
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 = createNodesAndInterfacesProfile.input_key_args() self.select_nodes = read_add_mos_args(add_mos('Add a node', createNodes.input_key_args)) select_nodes = [] for node in self.select_nodes: select_nodes.append({'leaf_id': node[0], 'router_id': node[1]}) self.select_nodes = select_nodes self.interface_profile = createInterfaceProfile.input_key_args() self.select_routed_interfaces = read_add_mos_args(add_mos('Add a Routed Interface', createRoutedInterfaceProfile.input_key_args)) select_routed_interfaces = [] for interface in self.select_routed_interfaces: select_routed_interfaces.append({'leaf_id': interface[0], 'eth_num': interface[1], 'ip_address': interface[2]}) self.select_routed_interfaces = select_routed_interfaces self.external_network = createExternalNetwork.input_key_args()
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 = createNodesAndInterfacesProfile.input_key_args() self.select_nodes = read_add_mos_args( add_mos('Add a node', createNodes.input_key_args)) select_nodes = [] for node in self.select_nodes: select_nodes.append({'leaf_id': node[0], 'router_id': node[1]}) self.select_nodes = select_nodes self.interface_profile = createInterfaceProfile.input_key_args() self.select_routed_interfaces = read_add_mos_args( add_mos('Add a Routed Interface', createRoutedInterfaceProfile.input_key_args)) select_routed_interfaces = [] for interface in self.select_routed_interfaces: select_routed_interfaces.append({ 'leaf_id': interface[0], 'eth_num': interface[1], 'ip_address': interface[2] }) self.select_routed_interfaces = select_routed_interfaces self.external_network = createExternalNetwork.input_key_args()