in reply to Re^3: Cisco to Juniper - parser help
in thread Cisco to Juniper - parser help

Yes, the xconnect is nested under the service instance(directly configured under the service instance), and the MTU is nested under the xconnect(directly configured under the xconnect).

Replies are listed 'Best First'.
Re^5: Cisco to Juniper - parser help
by LanX (Saint) on May 24, 2021 at 14:54 UTC
    I don't think I know enough about those tools to help you, and you don't understand my questions.

    Your code is also very hard to read for me.

    A general solution is to parse your tree data into a nested array of hashes and to traverse that to output your new format.

    But I don't know if that's really necessary because I don't understand the data.

    I hope someone with deeper knowledge of your domain will pass by and can help you. :)

    update

    see also

    Re: Cisco to Juniper - parser help

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery