Skip to content

Commit abe41ad

Browse files
committed
Merge remote-tracking branch 'apache/4.20'
2 parents 574ed78 + 973b333 commit abe41ad

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

test/integration/smoke/test_vpc_redundant.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,10 +612,13 @@ def test_04_rvpc_network_garbage_collector_nics(self):
612612

613613
time.sleep(total_sleep)
614614

615-
# Router will be in FAULT state, i.e. keepalived is stopped
616-
self.check_routers_state(status_to_check="FAULT", expected_count=2)
615+
# Router will be in UNKNOWN state, i.e. keepalived is stopped
616+
self.check_routers_state(status_to_check="UNKNOWN", expected_count=2)
617+
617618
self.start_vm()
619+
# Routers will be in PRIMARY/BACKUP state
618620
self.check_routers_state(status_to_check="PRIMARY")
621+
self.check_routers_state(status_to_check="BACKUP")
619622

620623
@attr(tags=["advanced", "intervlan"], required_hardware="true")
621624
def test_05_rvpc_multi_tiers(self):

ui/src/config/section/offering.js

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,19 @@ export default {
128128
show: (record) => { return record.state !== 'Active' },
129129
groupMap: (selection) => { return selection.map(x => { return { id: x, state: 'Active' } }) }
130130
}, {
131-
api: 'deleteServiceOffering',
131+
api: 'updateServiceOffering',
132132
icon: 'pause-circle-outlined',
133133
label: 'label.action.disable.service.offering',
134134
message: 'message.action.disable.service.offering',
135135
docHelp: 'adminguide/service_offerings.html#modifying-or-deleting-a-service-offering',
136136
dataView: true,
137137
groupAction: true,
138138
popup: true,
139+
mapping: {
140+
state: {
141+
value: (record) => { return 'Inactive' }
142+
}
143+
},
139144
show: (record) => { return record.state === 'Active' },
140145
groupMap: (selection) => { return selection.map(x => { return { id: x } }) }
141146
}]
@@ -204,7 +209,7 @@ export default {
204209
show: (record) => { return record.state !== 'Active' },
205210
groupMap: (selection) => { return selection.map(x => { return { id: x, state: 'Active' } }) }
206211
}, {
207-
api: 'deleteServiceOffering',
212+
api: 'updateServiceOffering',
208213
icon: 'pause-circle-outlined',
209214
label: 'label.action.disable.system.service.offering',
210215
message: 'message.action.disable.system.service.offering',
@@ -213,6 +218,11 @@ export default {
213218
params: { issystem: 'true' },
214219
groupAction: true,
215220
popup: true,
221+
mapping: {
222+
state: {
223+
value: (record) => { return 'Inactive' }
224+
}
225+
},
216226
show: (record) => { return record.state === 'Active' },
217227
groupMap: (selection) => { return selection.map(x => { return { id: x } }) }
218228
}]
@@ -307,14 +317,19 @@ export default {
307317
show: (record) => { return record.state !== 'Active' },
308318
groupMap: (selection) => { return selection.map(x => { return { id: x, state: 'Active' } }) }
309319
}, {
310-
api: 'deleteDiskOffering',
320+
api: 'updateDiskOffering',
311321
icon: 'pause-circle-outlined',
312322
label: 'label.action.disable.disk.offering',
313323
message: 'message.action.disable.disk.offering',
314324
docHelp: 'adminguide/service_offerings.html#modifying-or-deleting-a-service-offering',
315325
dataView: true,
316326
groupAction: true,
317327
popup: true,
328+
mapping: {
329+
state: {
330+
value: (record) => { return 'Inactive' }
331+
}
332+
},
318333
show: (record) => { return record.state === 'Active' },
319334
groupMap: (selection) => { return selection.map(x => { return { id: x } }) }
320335
}]

0 commit comments

Comments
 (0)