cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
69
Views
0
Helpful
2
Replies
khgrant
Cisco Employee

Juniper Device Community configuration problem

 

Dear NSO Community,

 

When I am trying to reload java package on NCS Cli which has the xml template for Juniper device, is giving me the below error:


“LARM package-load-failure: [ens_policy_options_local.xml:23 missing tag: key1]”

The configuration to be pushed on Juniper device in the xml template is below:

<policy-options>
   <policy-statement>
        <name>VRF{$MARKET-ASN}:{$VRF-TARGET}-EXPORT</name>
        <term>
          <name>local-and-remote-vrfs</name>
          <then>
            <community>
              <add/>
              <community-name>{$MARKET-ASN}:{$VRF-TARGET}</community-name>
            </community>
            <accept/>
          </then>
        </term>
      </policy-statement>
</policy-options>

 

The above configuration has been generated from Juniper NED only using the NCS Cli.

 

 

Appreciates any help!!

 

Regards,

 

Vishesh Kansal

 

2 REPLIES 2
khgrant
Cisco Employee

 

Hi Vishesh,

 

Our Junos NED is not 100% equal to the XML representation in the Junos config. You are missing some XML tags.

 

What can you do?

 

- Take a Junos configured device and perform a Sync-from. Then do a “show devices device X config | display xml” to find the right representation.

 

- You can configure your desired config via device manager in NSO outside of your service package and verify the XML representation of the config.

 

 

Cheers!

 

Roque

 

khgrant
Cisco Employee

 

Hi Roque,

 

Thanks a lot! Yes I got the right xml representation using “show devices device X config | display xml”. Earlier I was using “commit dry-run outformat xml” which was giving wrong representation.

 

 

Regards,

Vishesh Kansal

 

Content for Community-Ad