summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2015-11-19 19:59:30 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2015-11-19 19:59:30 (GMT)
commit962330ecbabd621de10aa7858d8034dabf0b1d36 (patch) (side-by-side diff)
tree1adaf40cda16a4511f6e64a753e0de815639239b
parentcca914ab74774098e30418df29bd817e4c2f1501 (diff)
downloadeclat-962330ecbabd621de10aa7858d8034dabf0b1d36.tar.gz
eclat-962330ecbabd621de10aa7858d8034dabf0b1d36.tar.bz2
Add missing files to repo
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--doc/eclat-mkvpc.173
-rw-r--r--src/mksubnet-cl.opt38
2 files changed, 111 insertions, 0 deletions
diff --git a/doc/eclat-mkvpc.1 b/doc/eclat-mkvpc.1
new file mode 100644
index 0000000..2f17093
--- a/dev/null
+++ b/doc/eclat-mkvpc.1
@@ -0,0 +1,73 @@
+.\" This file is part of Eclat -*- nroff -*-
+.\" Copyright (C) 2015 Sergey Poznyakoff
+.\"
+.\" Eclat is free software; you can redistribute it and/or modify
+.\" it under the terms of the GNU General Public License as published by
+.\" the Free Software Foundation; either version 3, or (at your option)
+.\" any later version.
+.\"
+.\" Eclat is distributed in the hope that it will be useful,
+.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
+.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+.\" GNU General Public License for more details.
+.\"
+.\" You should have received a copy of the GNU General Public License
+.\" along with Eclat. If not, see <http://www.gnu.org/licenses/>.
+.TH ECLAT-COMMAND 1 "November 18, 2015" "ECLAT" "Eclat User Reference"
+.SH NAME
+eclat-mkvpc, eclat-create-vpc \- Create VPC
+.SH SYNOPSIS
+.nh
+.na
+\fBeclat mkvpc\fR\
+ [\fB\-t\fR \fBdefault\fR|\fBdedicated\fR]\
+ [\fB\-\-tenancy\fR \fBdefault\fR|\fBdedicated\fR]\
+ \fICIDR\fR
+.PP
+\fBeclat command\fR \fB\-\-help\fR
+.ad
+.hy
+.SH DESCRIPTION
+Creates a VPC with the specified \fICIDR\fR block. \fICIDR\fR must
+have form \fINETWORK\fB/\fMASKLEN\fR, e.g. \fB10.0.0.0/28\fR.
+.SH OPTIONS
+.TP
+\fB\-t\fR, \fB\-\-tenancy=\fIVALUE\fR
+Set the tenancy for instances created in this VPC. A value of
+\fBdefault\fR means that instances can be launched with any tenancy; a
+value of \fBdedicated\fR means all instances launched into the VPC are
+launched as dedicated tenancy instances regardless of the tenancy
+assigned to the instance at launch.
+.SH OUTPUT
+On success, prints the ID of the created VPC, the CIDR, options, and
+its state.
+.SH EXAMPLE
+.PP
+.EX
+$ eclat mkvpc 10.0.0.0/16
+vpc-1a2b3c4d 10.0.0.0/16 dopt-1a2b3c4d2 pending
+.EE
+.SH "SEE ALSO"
+.BR eclat (1),
+.BR eclat\-lsvpc (1).
+.SH AUTHORS
+Sergey Poznyakoff
+.SH "BUG REPORTS"
+Report bugs to <bug\-eclat@gnu.org.ua>.
+.SH COPYRIGHT
+Copyright \(co 2015 Sergey Poznyakoff
+.br
+.na
+License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
+.br
+.ad
+This is free software: you are free to change and redistribute it.
+There is NO WARRANTY, to the extent permitted by law.
+.\" Local variables:
+.\" eval: (add-hook 'write-file-hooks 'time-stamp)
+.\" time-stamp-start: ".TH [A-Z_][A-Z0-9_.\\-]* [0-9] \""
+.\" time-stamp-format: "%:B %:d, %:y"
+.\" time-stamp-end: "\""
+.\" time-stamp-line-limit: 20
+.\" end:
+
diff --git a/src/mksubnet-cl.opt b/src/mksubnet-cl.opt
new file mode 100644
index 0000000..a870cc0
--- a/dev/null
+++ b/src/mksubnet-cl.opt
@@ -0,0 +1,38 @@
+/* This file is part of Eclat.
+ Copyright (C) 2012-2015 Sergey Poznyakoff.
+
+ Eclat is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ Eclat is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Eclat. If not, see <http://www.gnu.org/licenses/>. */
+
+char const *zone;
+
+ECLAT_CL_BEGIN([<create subnet>],
+ [<CIDR VPC-ID>])
+
+OPTION(zone,z,[<ZONE>],
+ [<set availablility zone>])
+ALIAS(availability-zone)
+BEGIN
+ zone = optarg;
+END
+
+ECLAT_CL_END
+
+ECLAT_CL_PARSER(mksubnet_parse_options,
+ [<int argc, char *argv[], int *index>],[<
+{
+ GETOPT(argc, argv, *index, exit(EX_USAGE))
+}
+>])
+
+

Return to:

Send suggestions and report system problems to the System administrator.