Skip to content

Commit 836ef9e

Browse files
committed
Merge remote-tracking branch 'origin/4.19'
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> Conflicts: systemvm/debian/opt/cloud/bin/cs/CsHelper.py
2 parents 27124c1 + 4c27574 commit 836ef9e

File tree

6 files changed

+10
-12
lines changed

6 files changed

+10
-12
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ jobs:
313313
echo -e "Simulator CI Test Results: (only failures listed)\n"
314314
python3 ./tools/marvin/xunit-reader.py integration-test-results/
315315
316-
- uses: codecov/codecov-action@v3
316+
- uses: codecov/codecov-action@v4
317317
with:
318318
files: jacoco-coverage.xml
319319
fail_ci_if_error: true

.github/workflows/codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
cd nonoss && bash -x install-non-oss.sh && cd ..
5050
mvn -P quality -Dsimulator -Dnoredist clean install -T$(nproc)
5151
52-
- uses: codecov/codecov-action@v3
52+
- uses: codecov/codecov-action@v4
5353
with:
5454
files: ./client/target/site/jacoco-aggregate/jacoco.xml
5555
fail_ci_if_error: true

.github/workflows/ui.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
npm run lint
5656
npm run test:unit
5757
58-
- uses: codecov/codecov-action@v3
58+
- uses: codecov/codecov-action@v4
5959
with:
6060
working-directory: ui
6161
files: ./coverage/lcov.info

systemvm/debian/opt/cloud/bin/cs/CsDhcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def configure_server(self):
127127
line = "dhcp-option=%s,26,%s" % (device, i['mtu'])
128128
self.conf.search(sline, line)
129129

130-
# Netmask
130+
# Netmask
131131
netmask = ''
132132
if self.config.is_vpc():
133133
netmask = gn.get_netmask()

systemvm/debian/opt/cloud/bin/cs/CsHelper.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,22 +113,20 @@ def bool_to_yn(val):
113113
def get_device_info():
114114
""" Returns all devices on system with their ipv4 ip netmask """
115115
list = []
116+
mtu = None
116117
for i in execute("ip addr show |grep -v secondary"):
117118
vals = i.strip().lstrip().rstrip().split()
118119
if re.search('[0-9]:', vals[0]):
119-
to = {}
120-
to['mtu'] = vals[4]
121-
list.append(to)
120+
mtu = vals[4]
122121

123122
if vals[0] == "inet":
124-
if len(list) > 0:
125-
to = list.pop(len(list)-1)
126-
else:
127-
to = {}
123+
to = {}
128124
to['ip'] = vals[1]
129125
to['dev'] = vals[-1]
130126
to['network'] = IPNetwork(to['ip'])
131127
to['dnsmasq'] = False
128+
if mtu:
129+
to['mtu'] = mtu
132130
list.append(to)
133131
return list
134132

ui/src/views/compute/wizard/NetworkConfiguration.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export default {
263263
return Promise.resolve()
264264
} else if (!this.ipV4Regex.test(value)) {
265265
return Promise.reject(this.$t('message.error.ipv4.address'))
266-
} else if (rule.networkType !== 'L2' && !this.isIp4InCidr(value, rule.cidr)) {
266+
} else if (rule.networkType === 'Isolated' && !this.isIp4InCidr(value, rule.cidr)) {
267267
const rangeIps = this.calculateCidrRange(rule.cidr)
268268
const message = `${this.$t('message.error.ip.range')} ${this.$t('label.from')} ${rangeIps[0]} ${this.$t('label.to')} ${rangeIps[1]}`
269269
return Promise.reject(message)

0 commit comments

Comments
 (0)