Skip to content

Commit 7ae38a3

Browse files
authored
Merge pull request #48 from iij/seil3-7.31
seil3/6/8 7.31/5.52/3.31 対応
2 parents aa5b7b4 + 7adb71e commit 7ae38a3

File tree

3 files changed

+32
-12
lines changed

3 files changed

+32
-12
lines changed

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<div>
2424
<div class="config-area">
2525
<div id="seilconfig" class="config-row">
26-
<div class="model">From: SEIL/X1, X2, B1, x86 Fuji, BPV4 (7.21)</div>
26+
<div class="model">From: SEIL/X1, X2, B1, x86 Fuji, BPV4 (7.31)</div>
2727
<textarea class="config-text" v-model="text" rows="20" cols="64" spellcheck="false"
2828
placeholder="Enter SEIL config here."></textarea>
2929
</div>
@@ -35,10 +35,10 @@
3535
<div class="config-row">
3636
<div class="model">To:
3737
<select id="model-dst" v-model="selected">
38-
<option value="w2">SA-W2, W2L, W2S (5.50)</option>
39-
<option value="x4" selected>SEIL/X4 (3.30)</option>
40-
<option value="ayame">SEIL/x86 Ayame (3.30)</option>
41-
<option value="ca10">SEIL CA10 (3.30)</option>
38+
<option value="w2">SA-W2, W2L, W2S (5.52)</option>
39+
<option value="x4" selected>SEIL/X4 (3.31)</option>
40+
<option value="ayame">SEIL/x86 Ayame (3.31)</option>
41+
<option value="ca10">SEIL CA10 (3.31)</option>
4242
</select>
4343
</div>
4444
<textarea id="recipeconfig" class="config-text" v-model="text" rows="20" cols="64" spellcheck="false"

seil2recipe.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ const CompatibilityList = {
587587
'dhcp6 relay': [ 0, 1 ],
588588
'dhcp6 server': [ 0, 1 ],
589589
'dialup-device ... device-option ux312nc-3g-only': [ 1, 0 ],
590-
'dialup-device ... device-option ux312nc-lte-only':[ 0, 0 ],
590+
'dialup-device ... device-option ux312nc-lte-only':[ 1, 0 ],
591591
'dialup-network': [ 1, 0 ],
592592
'filter6 add ... action forward': [ 0, 1 ],
593593
'ike peer add ... check-level': [ 0, 1 ],
@@ -2753,7 +2753,9 @@ Converter.rules['interface'] = {
27532753
}
27542754

27552755
if (ddev['ux312nc-lte-only'] != null) {
2756-
conv.missing('dialup-device ... device-option ux312nc-lte-only');
2756+
if (!conv.missing('dialup-device ... device-option ux312nc-lte-only')) {
2757+
conv.add(`${k1}.device-option.ux312nc-lte-only`, ddev['ux312nc-lte-only']);
2758+
}
27572759
}
27582760

27592761
const apname = ddev['connect-to'];
@@ -4639,11 +4641,13 @@ Converter.rules['route'] = {
46394641
'exact-match': 0,
46404642
'interface': true,
46414643
'metric': true,
4644+
'tag': 'notsupported',
46424645
'pass': 0,
46434646
'block': 0,
46444647
'set-as-path-prepend': true,
46454648
'set-metric': true,
46464649
'set-metric-type': true,
4650+
'set-tag': 'notsupported',
46474651
'set-weight': true,
46484652
});
46494653
},

test/test.js

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,6 @@ describe('dialup-device', () => {
568568
ppp add PPP ipcp enable ipcp-address on ipcp-dns on ipv6cp enable identifier [email protected] passphrase ppppass keepalive 8 auto-connect ondemand idle-timer 30
569569
dialup-device access-point add AP cid 2 apn example.jp pdp-type ip
570570
dialup-device mdm0 connect-to AP pin 1234 auto-reset-fail-count 10
571-
dialup-device mdm0 device-option ux312nc-3g-only on
572571
dialup-device keepalive-send-interval 30
573572
dialup-device keepalive-down-count 20
574573
dialup-device keepalive-timeout 3
@@ -581,7 +580,6 @@ describe('dialup-device', () => {
581580
interface.ppp0.auto-reset-keepalive.down-detect-time: 10
582581
interface.ppp0.auto-reset-keepalive.reply-timeout: 3
583582
interface.ppp0.cid: 2
584-
interface.ppp0.device-option.ux312nc-3g-only: enable
585583
interface.ppp0.dialup-device: mdm0
586584
interface.ppp0.id: [email protected]
587585
interface.ppp0.idle-timer: 30
@@ -615,16 +613,29 @@ describe('dialup-device', () => {
615613
`);
616614
});
617615

618-
it('ux312nc-lte-only is not supported on seil6/seil8 yet', () => {
616+
it('ux312nc-lte-only is not supported on seil8', () => {
617+
assertconv(`
618+
dialup-device access-point add AP apn example.jp
619+
dialup-device mdm0 connect-to AP
620+
dialup-device mdm0 authentication-method chap username foo password bar
621+
dialup-device mdm0 device-option ux312nc-lte-only enable
622+
interface wwan0 over mdm0
623+
---
624+
interface.wwan0.apn: example.jp
625+
interface.wwan0.auth-method: chap
626+
interface.wwan0.dialup-device: mdm0
627+
interface.wwan0.id: foo
628+
interface.wwan0.password: bar
629+
interface.wwan0.device-option.ux312nc-lte-only: enable
630+
`, 'w2');
631+
619632
// warning: incomplete config.
620633
const config_e = `dialup-device mdm0 device-option ux312nc-lte-only enable
621634
interface ppp0 over mdm0`;
622-
assert_notsupported(config_e, 'w2');
623635
assert_notsupported(config_e, 'x4');
624636

625637
const config_d = `dialup-device mdm0 device-option ux312nc-lte-only disable
626638
interface ppp0 over mdm0`;
627-
assert_notsupported(config_d, 'w2');
628639
assert_notsupported(config_d, 'x4');
629640
});
630641
});
@@ -2403,6 +2414,11 @@ describe('route', () => {
24032414
`);
24042415
});
24052416
});
2417+
2418+
it('does not support "route-filter tag / set-tag"', () => {
2419+
assert_notsupported("route dynamic route-filter add A tag 1");
2420+
assert_notsupported("route dynamic route-filter add B set-tag 1");
2421+
});
24062422
});
24072423

24082424
describe('route6', () => {

0 commit comments

Comments
 (0)