Forum Discussion

Keisuke_HANAMUR's avatar
Keisuke_HANAMUR
Icon for Nimbostratus rankNimbostratus
Jun 08, 2015

Networking::RouteDomainV2 problem within Transaction

I wrote following code with iControl SDK for Java.

 

    final Interfaces interfaces = new Interfaces(host, 443L, user, password);
    final SystemSessionBindingStub systemSession = interfaces.getSystemSession();
    systemSession.set_session_timeout(300);
    systemSession.set_transaction_timeout(300);
    final long sessionId = systemSession.get_session_identifier();
    systemSession.setHeader("urn:iControl", "session", Long.toString(sessionId));
    systemSession.start_transaction();

    final NetworkingRouteDomainV2BindingStub routeDomainV2 = 
            interfaces.getNetworkingRouteDomainV2();
    routeDomainV2.setHeader("urn:iControl", "session", Long.toString(sessionId));
    routeDomainV2.create(
            new String[]{"MyRouteDomain"},
            new long[]{Long.valueOf(vlanId)},
            new String[][]{{vlanName}}
    );
    routeDomainV2.set_parent(
            new String[]{"MyRouteDomain"},
            new String[]{"0"}
    );
    systemSession.submit_transaction();

This code throws exception at submit_transaction().

 

Exception caught in System::urn:iControl:System/Session::submit_transaction()
    Exception: Common::OperationFailed
primary_error_code   : 17237812 (0x01070734)
secondary_error_code : 0
error_string         : 01070734:3: Configuration error: route-domain Name /Common/MyRouteDomain is non-numeric, so an ID must be specified.

But,Similar code has worked If you do not use the transaction .

 

I think, this problem comes up when use the Networking::RouteDomainV2.create() and .set_parent() together in a transaction .

 

In addition , it will seem to be a similar problem in the case of Networking::RouteDomainV2.create() and .set_description() .

 

2 Replies

  • Hi keisuke, I had a same problem and asked technical support. They said it's a bug and will be fixed on v12.x.

     

    ID 520604 :Creating and modifying route domain fails in transaction.