Skip to content

Some new stuf #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jun 14, 2017
Merged

Some new stuf #1

merged 11 commits into from
Jun 14, 2017

Conversation

bedis
Copy link
Contributor

@bedis bedis commented Jun 7, 2017

Hi Mark,

Please find here a few commits to add some new features and to fix some typos.

Baptiste

bedis added 11 commits January 12, 2017 10:14
BSD may be confusing for people who were not updated by our marketing
(Sic)...
So, at Brocade, BSD does mean "Brocade Services Director" and not
FreeBSD / OpenBSD / NetBSD :)
the BSD API provides a "ping" function, useful to test if the BSD is
operational.
This patch implements a new function to run this ping.
This patch enables the ability to upload a file containing traffic
script code.
If the first line of the file starts with the sequence '#=-', it is
understood by vTM as a comment.

IE:

   #=-This is my sample rule
   $host = string.extractHost(string.lowercase(http.getHeader('Host')));
   if ((string.cmp($host, "example.com") == 0) {
      pool.select("p_mypool");
   }

The new function takes 2 arguments: the rulename and the path to the
file containing the rule.
When we try to insert a rule in a vserver and this rule already exists,
the error message returned explains the vserver is "already in
maintenance"...
WTF! This leads to inapropriate diagnostic.
This patch gives the library the ability to set global settings through
a JSON string.
vTM API allows uploading "extra_files" into the catalog.
Those files may be used for many different purposes.

This patch adds the ability to the vadc library to upload a file.
Sadly, we can't set the "make executable" bit during upload, since the
API does not propose this option for now.
This patch allows uploading a DNS server zone file upload through the
lib.
This patch gives the library the ability to configure a new DNS zone.
An exiting zone file must have been uploaded first (using the call to
upload_dns_zone_file() ).
This patch gives the ability to create a GLB location.
the Location's ID parameter is mandatory, but if none are provided when
calling the function, then it will look for one by itself.
This patch adds the ability to set up new custom monitors.
It can be used to set either a Pool or a GLB monitoring.
Advanced configuration for the monitoring itself must be passed through
the 'extra' parameter.
This patch adds the ability to create a GLB service.
A few parameters are needed:
 - a list of rules (could be None)
 - a list of domains for the GLB service
 - a dict of list describing the locations: monitor name and IP address

Some extra parameters can be supplied to customize more the GLB service.
Copy link
Owner

@TuxInvader TuxInvader left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@TuxInvader TuxInvader merged commit 03e9f3b into TuxInvader:master Jun 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants