GithubHelp home page GithubHelp logo

mr-method / jun2set Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 17 KB

Juniper config to set converter

Home Page: https://mr-method.github.io/jun2set/

HTML 22.43% CSS 10.76% JavaScript 66.81%
juniper-junos junos conf2set juniper-networks juniper mx standwithukraine

jun2set's Introduction

jun2set logo

#StandWithUkraine

Stand With Ukraine

jun2set

Представляю свою реалізацію конвертора бекапів конфігурацій вендора Juniper.

Я часто користувався схожим інструментом за посиланням http://www.stewartb.com/cgi-bin/juniper.pl , але нажаль, він більше не працює, а автор не відповідає на листи. Саме тому я вирішив знайти альтернативу, але всі вони або давно закинуті і мають проблеми, або виконані у вигляді консольних команд, що менш зручно в порівнянні з on-line інструментом.

Не знайшовши on-line алтернативи, вирішив реалізувати свій варіант. Спочатку було зроблено також на мові програмування perl, але згодом я вирішив переробити його на javascript, що значно полегшить інтеграцію даного інструменту в різні онлайн сервіси.

Працездатність перевірено на резервних копіях обладнання Juniper серії MX. Результати конвертора звірено з рідним виводом команди show | display omit | display set | no-more того ж обладнання.

Демо

Демо https://mr-method.github.io/jun2set/

Відомі баги 🪲

Деякі блоки конфігурації конвертуються в один рядок, хоча вивід команди show | display set | no-more того ж блоку виводить в кілька рядків, наприклад:

system {
    processes {
        general-authentication-service {
            traceoptions {
                file gas.log size 10k files 3;
                flag all;
            }
        }
    }
}

конвертує в 2 рядки

set system processes general-authentication-service traceoptions file gas.log size 10k files 3
set system processes general-authentication-service traceoptions flag all

а вивід display set виводить 4 рядки

set system processes general-authentication-service traceoptions file gas.log
set system processes general-authentication-service traceoptions file size 10k
set system processes general-authentication-service traceoptions file files 3
set system processes general-authentication-service traceoptions flag all

Оскільки команди з конвертера працюють належним чином, а швидкого рішення я не знайшов, тому лишаю як є, тим більше що цей баг є суто естетичним.

Допомога

Моя стихія це бекенд на Perl, верстка - це не моє 😜, тому будь-яке вдосконалення верстки чи коду конвертера вітаються!

Не прошу фінансової допомоги, а прошу допомоги у вдосконаленні інструменту.

jun2set's People

Contributors

mr-method avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.