summaryrefslogtreecommitdiff
path: root/tests/unit/fixtures/interfaces_running.json
blob: 91b132c36b9950e84a437e98126ccd64f740c876 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
  "default": {
    "ethernet": {
      "eth0": {
        "description": "mgmt",
        "mtu": "1500",
        "duplex": "auto",
        "speed": "auto",
        "vrf": "mgmt",
        "vif": { "200": { "description": "vif200", "mtu": "1400" } }
      },
      "eth1": {
        "disable": {}
      }
    },
    "bonding": {
      "bond0": { "description": "lag" }
    },
    "loopback": {
      "lo": {}
    }
  },

  "iface_with_address_mtu_description": {
    "ethernet": {
      "eth0": {
        "address": ["192.168.122.6/24"],
        "description": "mgmt",
        "mtu": "1500"
      }
    }
  },
  "iface_address_only": {
    "ethernet": { "eth0": { "address": ["192.168.122.6/24"] } }
  },
  "two_ifaces_one_with_address": {
    "ethernet": {
      "eth0": {},
      "eth1": { "address": ["10.0.0.1/24"], "description": "old" }
    }
  },
  "iface_address_and_description": {
    "ethernet": { "eth0": { "address": ["10.0.0.1/24"], "description": "old" } }
  },

  "vif_address_base": {
    "ethernet": {
      "eth0": {
        "description": "mgmt",
        "vif": {
          "200": {
            "address": { "192.0.2.1/24": {} },
            "description": "management vlan"
          }
        }
      }
    }
  },
  "vif_stale_disable_kept": {
    "ethernet": {
      "eth0": {
        "description": "x",
        "vif": { "200": { "description": "management vlan", "disable": {} } }
      }
    }
  },
  "vif_multi_mixed": {
    "ethernet": {
      "eth0": {
        "description": "mgmt",
        "vif": {
          "100": { "description": "kept-vlan" },
          "200": {
            "address": { "192.0.2.1/24": {} },
            "description": "removed-vlan"
          },
          "300": { "address": { "10.0.0.1/24": {} } }
        }
      }
    }
  },
  "vif_mtu_with_address": {
    "ethernet": {
      "eth0": {
        "vif": { "200": { "address": { "192.0.2.1/24": {} }, "mtu": "1400" } }
      }
    }
  },
  "vif_new_vif_base": {
    "ethernet": { "eth0": { "description": "mgmt" } }
  },

  "description_mtu_only": {
    "ethernet": { "eth0": { "description": "x", "mtu": "1500" } }
  },
  "iface_disabled_with_fields": {
    "ethernet": {
      "eth0": { "disable": {}, "mtu": "1500", "description": "keep" }
    }
  },
  "vif_disabled_on_device": {
    "ethernet": { "eth0": { "vif": { "200": { "disable": {} } } } }
  },
  "description_mtu_old_1400": {
    "ethernet": { "eth0": { "description": "old", "mtu": "1400" } }
  },
  "description_mtu_duplex": {
    "ethernet": {
      "eth0": { "description": "old", "mtu": "1500", "duplex": "auto" }
    }
  },
  "eth0_old_eth1_keepme": {
    "ethernet": {
      "eth0": { "description": "old" },
      "eth1": { "description": "keep-me" }
    }
  },
  "eth0_empty_eth1_described": {
    "ethernet": { "eth0": {}, "eth1": { "description": "old" } }
  },
  "two_described_ifaces": {
    "ethernet": {
      "eth0": { "description": "a" },
      "eth1": { "description": "b" }
    }
  },
  "one_described_iface": {
    "ethernet": { "eth0": { "description": "a", "mtu": "1500" } }
  },
  "eth0_truly_empty": {
    "ethernet": { "eth0": {} }
  },
  "eth1_truly_empty": {
    "ethernet": { "eth1": {} }
  },

  "bridge_ethbr0": {
    "bridge": { "ethbr0": {} }
  },
  "ethernet_and_bonding": {
    "ethernet": { "eth0": {} },
    "bonding": { "bond0": {} }
  },
  "bonding_bond0_only": {
    "bonding": { "bond0": {} }
  }
}