Add junos_config unit test (#24005)

This commit is contained in:
Ganesh Nalawade
2017-04-27 20:37:15 +05:30
committed by GitHub
parent 1f7c2c63c2
commit 9c4daded94
9 changed files with 227 additions and 13 deletions

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?><rpc-reply message-id="urn:uuid:72c481b8">
<configuration-set>
set version 15.1X49-D15.4
set system host-name vsrx01
set system domain-name ansible.com
</configuration-set>
</rpc-reply>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?><rpc-reply message-id="urn:uuid:6fcc8e22">
<configuration-information>
<configuration-output>
[edit interfaces]
+ ae11 {
+ unit 0 {
+ description Test;
+ }
+ }
</configuration-output>
</configuration-information>
</rpc-reply>

View File

@@ -0,0 +1,28 @@
{
"interfaces" : [
{
"interface" : [
{
"name" :
{
"data" : "ae11"
},
"unit" : [
{
"name" :
{
"data" : "0"
},
"description" : [
{
"data" : "Test"
}
]
}
]
}
]
}
]
}

View File

@@ -0,0 +1,2 @@
delete interfaces ae11
set interfaces ae11 unit 0 description Test

View File

@@ -0,0 +1,8 @@
interfaces {
ae11 {
unit 0 {
description Test
}
}
}

View File

@@ -0,0 +1,9 @@
<interfaces>
<interface>
<name>ae11</name>
<unit>
<name>0</name>
<description>Test</description>
</unit>
</interface>
</interfaces>