Skip to content

Commit

Permalink
b2
Browse files Browse the repository at this point in the history
  • Loading branch information
DumpySquare committed Apr 3, 2024
1 parent 4d64a61 commit 6e570f0
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 24 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how

---

## [1.6.0] - (03-27-2024)
## [1.6.0] - (04-03-2024)

### Fixed

Expand All @@ -29,6 +29,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
- defaults to v13.0
- Bug when config is missing hostname (should use filename instead)
- Moved conversion codeLense from preview to main
- added test for serviceGroup abstraction

---

Expand Down
Binary file modified f5_flipper_test.tgz
Binary file not shown.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "F5 Flipper",
"description": "Breaking down Citrix NetScaler ADC configs",
"publisher": "F5DevCentral",
"version": "1.5.0",
"version": "1.6.0",
"keywords": [
"F5",
"F5Networks",
Expand Down
44 changes: 24 additions & 20 deletions src/digLbVserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,33 +126,33 @@ export async function digLbVserver(coa: AdcConfObj, rx: AdcRegExTree) {

}

// dig serviceGroup details
await digServiceGroup(serviceName, app, coa, rx)
// dig serviceGroup details
await digServiceGroup(serviceName, app, coa, rx)

} else if (rxMatch.groups?.opts) {
} else if (rxMatch.groups?.opts) {

const opts = parseNsOptions(rxMatch.groups?.opts, rx);
if (opts['-policyName']) {
const pName = opts['-policyName'];
if (!app.bindings['-policyName']) {
app.bindings['-policyName'] = [];
}
const opts = parseNsOptions(rxMatch.groups?.opts, rx);
if (opts['-policyName']) {
const pName = opts['-policyName'];
if (!app.bindings['-policyName']) {
app.bindings['-policyName'] = [];
}

const policy = await digPolicy(pName, app, coa, rx)
app.bindings['-policyName'].push(opts as unknown as PolicyRef)
}
const policy = await digPolicy(pName, app, coa, rx)
app.bindings['-policyName'].push(opts as unknown as PolicyRef)
}

}
}


})
})



apps.push(sortAdcApp(app))
apps.push(sortAdcApp(app))

}))
return apps;
return apps;

}

Expand Down Expand Up @@ -318,13 +318,16 @@ export async function digSslBinding(app: AdcApp, obj: AdcConfObj, rx: AdcRegExTr

const appName = app.name;

const x = obj.bind?.ssl?.vserver?.filter(s => s.startsWith(appName))[0]
const appSslVservers = obj.bind?.ssl?.vserver?.filter(s => s.startsWith(appName))

// check ssl bindings
// for await (const x of obj.bind?.ssl?.vserver) {

// if (x.startsWith(app.name)) {
if (x) {
// if (x.startsWith(app.name)) {
if (appSslVservers.length > 0) {
for await (const x of appSslVservers) {


const parent = 'bind ssl vserver';
const originalString = parent + ' ' + x;
app.lines.push(originalString);
Expand All @@ -347,8 +350,9 @@ export async function digSslBinding(app: AdcApp, obj: AdcConfObj, rx: AdcRegExTr
})

}
// deepmergeInto(sslBindObj, opts)
}
// deepmergeInto(sslBindObj, opts)
}
// }

if (sslBindObj.length > 0) {
Expand Down
Binary file modified tests/artifacts/f5_flipper_test.tgz
Binary file not shown.

0 comments on commit 6e570f0

Please sign in to comment.