cancelar
Mostrar resultados para 
Pesquisar em vez de 
Queria dizer: 
Comunicados
Bem-vindo à Comunidade de Suporte da Cisco, gostaríamos de ter seus comentários.
New Member

onePK and CSR1000V

Hello everyone!

We are trying to use onePK with csr1000v and we have some problems over it.

Basically our csr1000v is configured with onePK running over tcp transport, because we are not able to set tls on it.

csr1000v_031#show onep status

Status: enabled

Version: 1.0.0

Transport: tcp; Status: running; Port: 15001

Transport: tls; Status: running; Port: 15002; localcert: default; remotecert: default;

Transport: tipc; Status: running; Port: 15003

Service Set: Base         State: Enabled     Version 1.0.0

Service Set: Lisp         State: Disabled    Version 0.1.0

Service Set: Vty          State: Disabled    Version 0.1.0

Service Set: OneFW        State: Disabled    Version 0.1.0

Service Set: Pathtrace    State: Disabled    Version 0.1.0

An user with privilege level 15 was created in router and it is being used by client application to log in csr1000v.

We are following all tips described in java sdk tutorials in order to work with QosPolicy and Routing configuration, but none of them are working perfectly.

The code from the first one example (QosPolicy):

     QosPolicy qosPolicy = new QosPolicy(element31.getNetworkElement());

     ClassMap classMap = new ClassMap(element31.getNetworkElement(), ClassMap.ClassOper.CLASS_OPER_AND);

     qosPolicy.addClass(classMap, 10);

     ActionShape actionShape = new ActionShape(20000, 20000,1000, ActionShape.ShapeType.ONEP_SHAPE_AVG,

                        ActionShape.RateUnits.ONEP_RATE_UNITS_BPS,

                        ActionShape.BurstUnits.ONEP_BURST_UNITS_BITS);

     qosPolicy.addAction(classMap, actionShape);

     Target target = new Target(element31.getNetworkElement().getInterfaceByName("GigabitEthernet2"),

                        Target.Location.ONEP_TARGET_LOCATION_HARDWARE_DEFINED_OUTPUT);      

    qosPolicy.applyToTarget(target);

But in the router the action is not being applied.

In the second one (Routing) we extract some information in onep trace feature:

[10/02/13 19:14:09.764 9559] [333] [ONEP][Session]: teste-rcp3902-5510: Session event [0x1] occured [network_app_session_handler:1401]

[10/02/13 19:14:09.764 955A] [333] [ONEP][Message]: Socket read returned 0, socket closed error [cthrift_recv_check_rb__:429]

[10/02/13 19:14:09.764 955B] [333] [ONEP][Session]: teste-rcp3902-5510: cthrift error: 4294901758 'operation on closed socket' [na_do_cthrift_read:1105]

[10/02/13 19:14:09.764 955C] [333] [ONEP][Session]: teste-rcp3902-5510: NA_STATE_READ error (1) - generating NA_STATE_CLEANUP [network_app_process_cthrift_msg:1281]

[10/02/13 19:14:09.764 955D] [333] [ONEP][Session]: teste-rcp3902-5510: NA_STATE_CLEANUP - generating NETWORK_APP_STATE_DISCONNECTED [network_app_process_cthrift_msg:1333]

[10/02/13 19:14:09.764 955E] [333] [ONEP][Session]: teste-rcp3902-5510: FSM: [Connected] ==> [Disconnected] [network_app_fsm_disconnected:3051]

[10/02/13 19:14:09.764 955F] [333] [ONEP][Session]: teste-rcp3902-5510: Disconnected with handle [1586] at Wed Oct 02 19:14:09.763 [network_app_fsm_disconnected:3156]

[10/02/13 19:14:09.765 9560] [333] [ONEP][Session]: caller pc 0x0x34F1C75 [network_application_final_cleanup:2371]

[10/02/13 19:14:09.765 9561] [333] [ONEP][Session]: teste-rcp3902-5510: session_exit [onep_session_manager_session_exit:335]

[10/02/13 19:14:09.765 9562] [333] [ONEP][Event]: Session exit for handle 5510 [onep_async_session_exit:852]

[10/02/13 19:14:09.765 9563] [333] [ONEP][Event]: delete async tbl elem session handle= 5510 successfully [onep_event_async_session_remove:1290]

[10/02/13 19:14:09.765 9564] [333] [ONEP][Session]: teste-rcp3902-5510: Async session_exit done [onep_session_manager_session_exit:345]

[10/02/13 19:14:09.765 9565] [333] [ONEP][Event]: SESSION_EXIT: session handle 5510 [onep_event_session_exit:1053]

[10/02/13 19:14:09.765 9566] [333] [ONEP][Event]: get by session_handle looking for: 5510 [fh_get_ctx_block_by_session_handle:280]

[10/02/13 19:14:09.765 9567] [333] [ONEP][Event]: get by session_handle found: 9035 [fh_get_ctx_block_by_session_handle:283]

[10/02/13 19:14:09.765 9568] [333] [ONEP][Event]: get by session_handle found: 5510 [fh_get_ctx_block_by_session_handle:283]

[10/02/13 19:14:09.765 9569] [333] [ONEP][Session]: teste-rcp3902-5510: Event session_exit done [onep_session_manager_session_exit:345]

[10/02/13 19:14:09.765 956A] [333] [ONEP][Policy]: Session exit 5510 [onep_policy_session_exit:449]

[10/02/13 19:14:09.765 956B] [333] [ONEP][Policy]: Deleting Classes [onep_al_policy_delete_all_classes:375]

[10/02/13 19:14:09.765 956C] [333] [ONEP][Policy]: Delete all policies failure [onep_al_policy_delete_all_policies:154]

[10/02/13 19:14:09.765 956D] [333] [ONEP][Policy]: Delete all policies failure [onep_policy_session_exit:457]

[10/02/13 19:14:09.765 956E] [333] [ONEP][Policy]: Deleting ACLs [onep_al_acl_delete_all_acls:181]

[10/02/13 19:14:09.765 956F] [333] [ONEP][Policy]: Deleting ACEs [onep_al_acl_delete_all_acls:253]

[10/02/13 19:14:09.765 9570] [333] [ONEP][Session]: teste-rcp3902-5510: Policy session_exit done [onep_session_manager_session_exit:345]

[10/02/13 19:14:09.765 9571] [333] [ONEP][LISP]: Session exit 5510 [onep_lisp_session_exit:151]

[10/02/13 19:14:09.765 9572] [333] [ONEP][Session]: teste-rcp3902-5510: Lisp session_exit done [onep_session_manager_session_exit:345]

[10/02/13 19:14:09.765 9573] [333] [ONEP][VTY]: Session exit 5510l [onep_vty_session_exit:2078]

[10/02/13 19:14:09.765 9574] [333] [ONEP][Session]: teste-rcp3902-5510: VTY session_exit done [onep_session_manager_session_exit:345]

[10/02/13 19:14:09.765 9575] [333] [ONEP][Location]: ONEP Location: Ignoring session exit

[onep_location_event_session_exit:1143]

[10/02/13 19:14:09.765 9576] [333] [ONEP][Session]: teste-rcp3902-5510: Location session_exit done [onep_session_manager_session_exit:345]

[10/02/13 19:14:09.765 9577] [333] [ONEP][Session]: teste-rcp3902-5510: Topology session_exit done [onep_session_manager_session_exit:345]

[10/02/13 19:14:09.765 9578] [333] [ONEP][CXSC]: Session exit 5510

[onep_onefw_session_exit:2143]

[10/02/13 19:14:09.765 9579] [333] [ONEP][Session]: teste-rcp3902-5510: OneFW session_exit done [onep_session_manager_session_exit:345]

[10/02/13 19:14:09.765 957A] [333] [ONEP][PATHTRACE]: ONEP Pathtrace: session exit

[onep_pathtrace_event_session_exit:804]

[10/02/13 19:14:09.765 957B] [333] [ONEP][Session]: teste-rcp3902-5510: Pathtrace session_exit done [onep_session_manager_session_exit:345]

[10/02/13 19:14:09.765 957C] [333] [ONEP][ROUTING]: ONEP Routing: session exit [onep_rtg_svc_session_exit:129]

[10/02/13 19:14:09.765 957D] [333] [ONEP][ROUTING]: App route table deinit [onep_al_app_route_table_deinit:99]

[10/02/13 19:14:09.765 957E] [333] [ONEP][Session]: teste-rcp3902-5510: Routing session_exit done [onep_session_manager_session_exit:345]

[10/02/13 19:14:09.766 957F] [492] [ONEP][Session]: teste-rcp3902-5510: [0x7F5E64029588][1586] removed [network_element_remove_app_cb:218]

[10/02/13 19:14:09.766 9580] [492] [ONEP][Base]: service=0, table=0, session handle (key)=0x1586 [onep_ha_ctx_remove:260]

[10/02/13 19:14:09.766 9581] [492] [ONEP][Base]: removed app name teste session handle 0x1586 [onep_ha_ctx_remove:271]

[10/02/13 19:14:09.766 9582] [333] [ONEP][Session]: teste-rcp3902-5510: session_update thread [4294967295] [onep_session_manager_session_update:297]

[10/02/13 19:14:09.766 9583] [333] [ONEP][Session]: Fail to find handle [5510] [network_element_find_app_by_handle:530]

[10/02/13 19:14:09.766 9584] [333] [ONEP][Session]: teste-rcp3902-5510: session_update fail [5510] [onep_session_manager_session_update:305]

And all routing configuration was not be applied as well.

There is some compatibility problem with onePK and csr1000v or we are forgetting some initial configuration?

1 RESPOSTA
New Member

Hi. Have you resolved your

Hi. Have you resolved your issue?

I am actually having trouble enabling onePK to run over TCP. How did you enable onePK to run over TCP?

 

my output shows:

Transport: tcp; Status: disabled
Transport: tls; Status: disabled
Transport: tipc; Status: running; Port: 15003

 

im running csr1000v on Version 03.11.01.S

thanks.

294
Apresentações
0
Kudo
1
Respostas