Skip to content

Commit 8c700f3

Browse files
authored
Merge pull request #196 from solidgoldbomb/support-enable-ipv6
2 parents 97822e0 + 7450da6 commit 8c700f3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

loader/interpolate.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ var interpolateTypeCastMapping = map[interp.Path]interp.Cast{
7171
iPath("networks", interp.PathMatchAll, "external"): toBoolean,
7272
iPath("networks", interp.PathMatchAll, "internal"): toBoolean,
7373
iPath("networks", interp.PathMatchAll, "attachable"): toBoolean,
74+
iPath("networks", interp.PathMatchAll, "enable_ipv6"): toBoolean,
7475
iPath("volumes", interp.PathMatchAll, "external"): toBoolean,
7576
iPath("secrets", interp.PathMatchAll, "external"): toBoolean,
7677
iPath("configs", interp.PathMatchAll, "external"): toBoolean,

types/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,7 @@ type NetworkConfig struct {
748748
Internal bool `yaml:",omitempty" json:"internal,omitempty"`
749749
Attachable bool `yaml:",omitempty" json:"attachable,omitempty"`
750750
Labels Labels `yaml:",omitempty" json:"labels,omitempty"`
751+
EnableIPv6 bool `mapstructure:"enable_ipv6" yaml:"enable_ipv6,omitempty" json:"enable_ipv6,omitempty"`
751752
Extensions map[string]interface{} `yaml:",inline" json:"-"`
752753
}
753754

0 commit comments

Comments
 (0)