Commit 1297a617 authored by Janis Streib's avatar Janis Streib 🦉
Browse files

ADD: show vlans in bcd overview (closes #182)

parent 0744fefa
Pipeline #117368 passed with stages
in 4 minutes and 49 seconds
......@@ -46,7 +46,8 @@ export default {
old: { do_rootpath: true }
},
{ name: 'cntl.mgr2ou.list', join: { 15: 'api_fkey_cntl_mgr2ou_ou' } },
{ name: 'cntl.mgr.list', join: { 16: 'api_fkey_cntl_mgr2ou_mgr' } }
{ name: 'cntl.mgr.list', join: { 16: 'api_fkey_cntl_mgr2ou_mgr' } },
{ name: 'nd.vlan.list', join: { 0: 'api_fkey_nd_vlan_bcd' } }
]
return TransactionService.execute(config, ta)
},
......
......@@ -162,6 +162,18 @@
<code v-for="subnet in subnets" :key="subnet.cidr">{{ subnet.cidr }}<br></code>
</b-td>
</b-tr>
<b-tr>
<b-th>
VLANs
</b-th>
<b-td>
<ul>
<li v-for="vlan in vlans" :key="vlan.id" :title="vlan.net_instnc">{{ vlan.name }}
({{ vlan.id }})
</li>
</ul>
</b-td>
</b-tr>
<b-tr>
<b-th>Gateways</b-th>
<b-td>
......@@ -319,6 +331,7 @@ export default {
components: {EVLogViewer, Loading, DBEditor},
data() {
return {
vlans: null,
fqdns: null,
groups: null,
gateways: null,
......@@ -507,6 +520,7 @@ export default {
this.parent_ous = rangeResponse.data[15]
this.parent_oe2mgr = apiutil.dict_of_lists_by_value_of_array(rangeResponse.data[16], 'ou_short_name')
this.parent_oe_mgr = apiutil.dict_by_value_of_array(rangeResponse.data[17], 'login_name')
this.vlans = rangeResponse.data[18]
const recordQuery = await RangeService.getRecords(this.$store.state.netdb_axios_config, this.$route.params.name)
this.fqdns = apiutil.dict_by_value_of_array(recordQuery.data[1], 'value')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment