summaryrefslogtreecommitdiff
path: root/tests/unit/fixtures
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/fixtures')
-rw-r--r--tests/unit/fixtures/l3_interfaces_running.json19
-rw-r--r--tests/unit/fixtures/lag_interfaces_running.json13
-rw-r--r--tests/unit/fixtures/ospf_interfaces_ipv4.json13
-rw-r--r--tests/unit/fixtures/ospf_interfaces_ipv6.json7
-rw-r--r--tests/unit/fixtures/ospfv2_running.json71
-rw-r--r--tests/unit/fixtures/ospfv3_running.json11
6 files changed, 86 insertions, 48 deletions
diff --git a/tests/unit/fixtures/l3_interfaces_running.json b/tests/unit/fixtures/l3_interfaces_running.json
index 676055b..3115861 100644
--- a/tests/unit/fixtures/l3_interfaces_running.json
+++ b/tests/unit/fixtures/l3_interfaces_running.json
@@ -1,21 +1,12 @@
{
"ethernet": {
"eth0": {
- "address": "dhcp",
- "hw-id": "52:54:00:65:5a:24",
- "vif": {
- "100": {
- "address": "192.0.2.100/24"
- }
- }
- }
+ "address": ["192.0.2.1/24", "2001:db8::1/64"],
+ "vif": { "100": { "address": ["192.0.2.100/24"] } }
+ },
+ "eth1": {}
},
"loopback": {
- "lo": {
- "address": ["10.0.0.1/32", "10.0.0.2/32"]
- }
- },
- "dummy": {
- "dummy0": {}
+ "lo": { "address": ["10.0.0.1/32"] }
}
}
diff --git a/tests/unit/fixtures/lag_interfaces_running.json b/tests/unit/fixtures/lag_interfaces_running.json
index 3477b1d..c3cc646 100644
--- a/tests/unit/fixtures/lag_interfaces_running.json
+++ b/tests/unit/fixtures/lag_interfaces_running.json
@@ -1,12 +1,15 @@
{
"bond0": {
+ "mode": "802.3ad",
+ "hash-policy": "layer2",
+ "primary": "eth1",
+ "member": { "interface": { "eth1": {}, "eth2": {} } },
"arp-monitor": {
"interval": "100",
- "target": {
- "192.0.2.1": {}
- }
- },
- "hash-policy": "layer2",
+ "target": { "192.0.2.1": {}, "192.0.2.2": {} }
+ }
+ },
+ "bond1": {
"mode": "active-backup"
}
}
diff --git a/tests/unit/fixtures/ospf_interfaces_ipv4.json b/tests/unit/fixtures/ospf_interfaces_ipv4.json
index 1f199a6..9b40f66 100644
--- a/tests/unit/fixtures/ospf_interfaces_ipv4.json
+++ b/tests/unit/fixtures/ospf_interfaces_ipv4.json
@@ -1,4 +1,13 @@
{
- "eth1": { "cost": "100", "transmit-delay": "50", "priority": "26" },
- "eth2": { "cost": "200" }
+ "eth1": {
+ "cost": "100",
+ "transmit-delay": "50",
+ "priority": "26",
+ "dead-interval": "40",
+ "mtu-ignore": {},
+ "authentication": { "md5": { "key-id": { "10": { "md5-key": "secret" } } } }
+ },
+ "eth2": {
+ "cost": "200"
+ }
}
diff --git a/tests/unit/fixtures/ospf_interfaces_ipv6.json b/tests/unit/fixtures/ospf_interfaces_ipv6.json
index 580cecf..5d96817 100644
--- a/tests/unit/fixtures/ospf_interfaces_ipv6.json
+++ b/tests/unit/fixtures/ospf_interfaces_ipv6.json
@@ -1,4 +1,9 @@
{
- "eth1": { "dead-interval": "39", "passive": {} },
+ "eth1": {
+ "dead-interval": "39",
+ "passive": {},
+ "instance-id": "5",
+ "ifmtu": "1500"
+ },
"eth2": {}
}
diff --git a/tests/unit/fixtures/ospfv2_running.json b/tests/unit/fixtures/ospfv2_running.json
index 9cc64a0..e5b5d72 100644
--- a/tests/unit/fixtures/ospfv2_running.json
+++ b/tests/unit/fixtures/ospfv2_running.json
@@ -2,41 +2,70 @@
"area": {
"2": {
"area-type": { "normal": {} },
- "network": "192.0.2.0/24"
- },
- "3": {
- "area-type": { "nssa": {} }
+ "authentication": "plaintext-password",
+ "shortcut": "enable"
},
"4": {
- "area-type": { "stub": { "default-cost": "20" } },
- "range": {
- "192.0.3.0/24": { "cost": "10" },
- "192.0.4.0/24": {}
+ "area-type": { "stub": { "default-cost": "20", "no-summary": {} } },
+ "network": { "192.0.2.0/24": {} },
+ "range": { "192.0.3.0/24": { "cost": "10", "not-advertise": {} } },
+ "virtual-link": {
+ "10.0.0.1": {
+ "authentication": { "plaintext-password": "secret" },
+ "dead-interval": "40",
+ "hello-interval": "10"
+ }
}
+ },
+ "5": {
+ "area-type": { "nssa": { "default-cost": "5", "translate": "always" } }
}
},
"auto-cost": { "reference-bandwidth": "2" },
- "interface": { "eth1": { "passive": {} }, "eth2": { "passive": {} } },
+ "default-information": {
+ "originate": {
+ "always": {},
+ "metric": "10",
+ "metric-type": "2",
+ "route-map": "ingress"
+ }
+ },
+ "default-metric": "5",
+ "distance": {
+ "global": "110",
+ "ospf": { "external": "150", "inter-area": "120", "intra-area": "100" }
+ },
"log-adjacency-changes": { "detail": {} },
- "neighbor": {
- "192.0.11.12": { "priority": "2", "poll-interval": "10" }
+ "max-metric": {
+ "router-lsa": {
+ "administrative": {},
+ "on-shutdown": "10",
+ "on-startup": "20"
+ }
},
+ "mpls-te": { "enable": {}, "router-address": "192.0.11.11" },
+ "neighbor": { "192.0.11.12": { "priority": "2", "poll-interval": "30" } },
"parameters": {
"router-id": "192.0.1.1",
- "abr-type": "cisco",
"opaque-lsa": {},
- "rfc1583-compatibility": {}
+ "rfc1583-compatibility": {},
+ "abr-type": "cisco"
+ },
+ "interface": {
+ "eth1": { "passive": {} },
+ "eth2": { "passive": { "disable": {} } }
},
"redistribute": {
- "bgp": { "metric": "10", "metric-type": "2" },
- "connected": {}
+ "bgp": { "metric": "10", "metric-type": "2", "route-map": "redist-map" }
},
- "default-information": {
- "originate": {
- "always": {},
- "metric": "10",
- "metric-type": "2",
- "route-map": "ingress"
+ "refresh": { "timers": "300" },
+ "timers": {
+ "throttle": {
+ "spf": {
+ "delay": "200",
+ "initial-holdtime": "500",
+ "max-holdtime": "2000"
+ }
}
}
}
diff --git a/tests/unit/fixtures/ospfv3_running.json b/tests/unit/fixtures/ospfv3_running.json
index 44a1bcd..6588a1d 100644
--- a/tests/unit/fixtures/ospfv3_running.json
+++ b/tests/unit/fixtures/ospfv3_running.json
@@ -1,6 +1,4 @@
{
- "parameters": { "router-id": "192.0.2.10" },
- "redistribute": { "bgp": {}, "connected": { "route-map": "RM1" } },
"area": {
"2": {
"export-list": "export1",
@@ -11,9 +9,12 @@
}
},
"3": {
- "range": {
- "2001:db40::/32": {}
- }
+ "range": { "2001:db40::/32": { "advertise": {} } }
}
+ },
+ "parameters": { "router-id": "192.0.2.10" },
+ "redistribute": {
+ "bgp": { "route-map": "redist-map" },
+ "static": {}
}
}