Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Junoser-compareの実装 #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shogosanz
Copy link
Contributor

@shogosanz shogosanz commented Jan 21, 2018

junoser-compareの実装

ref #8

わかりやすくするために、PRを分割しております。
configファイル2つの入力を受けるために、input.rbにread2を定義しております。

実行

(16:59:46): junoser$cat test_config
set interfaces em0 unit 0 family inet mtu 1500
set interfaces em0 unit 0 family inet6
set interfaces em1 unit 1
set interfaces em2
set interfaces em100 unit 0 family inet mtu 1500
set interfaces em100 unit 0 family inet6

(16:59:53): junoser$cat test_config2
set interfaces em0 unit 0 family inet address 1.1.1.1/32
set interfaces em1
set interfaces em2 unit 1 family inet
set interfaces em2 unit 1 family inet6
set interfaces em3

(16:59:56): junoser$ruby exe/junoser-compare test_config test_config2
delete interfaces em0 unit 0 family inet mtu 1500
delete interfaces em0 unit 0 family inet6
delete interfaces em1 unit 1
delete interfaces em100

set interfaces em0 unit 0 family inet address 1.1.1.1/32
set interfaces em2 unit 1 family inet
set interfaces em2 unit 1 family inet6
set interfaces em3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant