mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Add junos_config unit test (#24005)
This commit is contained in:
@@ -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>
|
||||
@@ -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>
|
||||
28
test/units/modules/network/junos/fixtures/junos_config.json
Normal file
28
test/units/modules/network/junos/fixtures/junos_config.json
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
{
|
||||
"interfaces" : [
|
||||
{
|
||||
"interface" : [
|
||||
{
|
||||
"name" :
|
||||
{
|
||||
"data" : "ae11"
|
||||
},
|
||||
"unit" : [
|
||||
{
|
||||
"name" :
|
||||
{
|
||||
"data" : "0"
|
||||
},
|
||||
"description" : [
|
||||
{
|
||||
"data" : "Test"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
delete interfaces ae11
|
||||
set interfaces ae11 unit 0 description Test
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
interfaces {
|
||||
ae11 {
|
||||
unit 0 {
|
||||
description Test
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<interfaces>
|
||||
<interface>
|
||||
<name>ae11</name>
|
||||
<unit>
|
||||
<name>0</name>
|
||||
<description>Test</description>
|
||||
</unit>
|
||||
</interface>
|
||||
</interfaces>
|
||||
Reference in New Issue
Block a user