Modify StaticRoute interfaces to static gateway

StaticRoute interfaces being used implementing IPv6 static gateways
https://gerrit.openbmc.org/c/openbmc/bmcweb/+/62255
Network StaticRoute feature was dropped for OpenBMC, so these static
route interfaces are no longer needed.

This commit modifies exiting static route interfaces to support static
gateway with required properties

Change-Id: Icd94b35098b50376d701ea2e3b03ece9f2f71be7
Signed-off-by: Ravi Teja <raviteja28031990@gmail.com>
diff --git a/gen/xyz/openbmc_project/Network/StaticRoute/Create/meson.build b/gen/xyz/openbmc_project/Network/StaticGateway/Create/meson.build
similarity index 73%
rename from gen/xyz/openbmc_project/Network/StaticRoute/Create/meson.build
rename to gen/xyz/openbmc_project/Network/StaticGateway/Create/meson.build
index 652732e..43fcaf8 100644
--- a/gen/xyz/openbmc_project/Network/StaticRoute/Create/meson.build
+++ b/gen/xyz/openbmc_project/Network/StaticGateway/Create/meson.build
@@ -1,7 +1,7 @@
 # Generated file; do not modify.
 generated_sources += custom_target(
-    'xyz/openbmc_project/Network/StaticRoute/Create__cpp'.underscorify(),
-    input: [ '../../../../../../yaml/xyz/openbmc_project/Network/StaticRoute/Create.interface.yaml',  ],
+    'xyz/openbmc_project/Network/StaticGateway/Create__cpp'.underscorify(),
+    input: [ '../../../../../../yaml/xyz/openbmc_project/Network/StaticGateway/Create.interface.yaml',  ],
     output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'aserver.hpp', 'client.hpp',  ],
     depend_files: sdbusplusplus_depfiles,
     command: [
@@ -9,7 +9,7 @@
         '--output', meson.current_build_dir(),
         '--tool', sdbusplusplus_prog,
         '--directory', meson.current_source_dir() / '../../../../../../yaml',
-        'xyz/openbmc_project/Network/StaticRoute/Create',
+        'xyz/openbmc_project/Network/StaticGateway/Create',
     ],
 )
 
diff --git a/gen/xyz/openbmc_project/Network/StaticRoute/meson.build b/gen/xyz/openbmc_project/Network/StaticGateway/meson.build
similarity index 73%
rename from gen/xyz/openbmc_project/Network/StaticRoute/meson.build
rename to gen/xyz/openbmc_project/Network/StaticGateway/meson.build
index a11aba7..8ef36a0 100644
--- a/gen/xyz/openbmc_project/Network/StaticRoute/meson.build
+++ b/gen/xyz/openbmc_project/Network/StaticGateway/meson.build
@@ -1,7 +1,7 @@
 # Generated file; do not modify.
 generated_sources += custom_target(
-    'xyz/openbmc_project/Network/StaticRoute__cpp'.underscorify(),
-    input: [ '../../../../../yaml/xyz/openbmc_project/Network/StaticRoute.interface.yaml',  ],
+    'xyz/openbmc_project/Network/StaticGateway__cpp'.underscorify(),
+    input: [ '../../../../../yaml/xyz/openbmc_project/Network/StaticGateway.interface.yaml',  ],
     output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'aserver.hpp', 'client.hpp',  ],
     depend_files: sdbusplusplus_depfiles,
     command: [
@@ -9,14 +9,14 @@
         '--output', meson.current_build_dir(),
         '--tool', sdbusplusplus_prog,
         '--directory', meson.current_source_dir() / '../../../../../yaml',
-        'xyz/openbmc_project/Network/StaticRoute',
+        'xyz/openbmc_project/Network/StaticGateway',
     ],
 )
 
 subdir('Create')
 generated_others += custom_target(
-    'xyz/openbmc_project/Network/StaticRoute/Create__markdown'.underscorify(),
-    input: [ '../../../../../yaml/xyz/openbmc_project/Network/StaticRoute/Create.interface.yaml',  ],
+    'xyz/openbmc_project/Network/StaticGateway/Create__markdown'.underscorify(),
+    input: [ '../../../../../yaml/xyz/openbmc_project/Network/StaticGateway/Create.interface.yaml',  ],
     output: [ 'Create.md' ],
     depend_files: sdbusplusplus_depfiles,
     command: [
@@ -24,7 +24,7 @@
         '--output', meson.current_build_dir(),
         '--tool', sdbusplusplus_prog,
         '--directory', meson.current_source_dir() / '../../../../../yaml',
-        'xyz/openbmc_project/Network/StaticRoute/Create',
+        'xyz/openbmc_project/Network/StaticGateway/Create',
     ],
 )
 
diff --git a/gen/xyz/openbmc_project/Network/meson.build b/gen/xyz/openbmc_project/Network/meson.build
index d0bbcab..c6c9944 100644
--- a/gen/xyz/openbmc_project/Network/meson.build
+++ b/gen/xyz/openbmc_project/Network/meson.build
@@ -90,18 +90,18 @@
     ],
 )
 
-subdir('StaticRoute')
+subdir('StaticGateway')
 generated_others += custom_target(
-    'xyz/openbmc_project/Network/StaticRoute__markdown'.underscorify(),
-    input: [ '../../../../yaml/xyz/openbmc_project/Network/StaticRoute.interface.yaml',  ],
-    output: [ 'StaticRoute.md' ],
+    'xyz/openbmc_project/Network/StaticGateway__markdown'.underscorify(),
+    input: [ '../../../../yaml/xyz/openbmc_project/Network/StaticGateway.interface.yaml',  ],
+    output: [ 'StaticGateway.md' ],
     depend_files: sdbusplusplus_depfiles,
     command: [
         sdbuspp_gen_meson_prog, '--command', 'markdown',
         '--output', meson.current_build_dir(),
         '--tool', sdbusplusplus_prog,
         '--directory', meson.current_source_dir() / '../../../../yaml',
-        'xyz/openbmc_project/Network/StaticRoute',
+        'xyz/openbmc_project/Network/StaticGateway',
     ],
 )
 
diff --git a/yaml/xyz/openbmc_project/Network/StaticRoute.interface.yaml b/yaml/xyz/openbmc_project/Network/StaticGateway.interface.yaml
similarity index 67%
rename from yaml/xyz/openbmc_project/Network/StaticRoute.interface.yaml
rename to yaml/xyz/openbmc_project/Network/StaticGateway.interface.yaml
index 127d1ea..6993b2d 100644
--- a/yaml/xyz/openbmc_project/Network/StaticRoute.interface.yaml
+++ b/yaml/xyz/openbmc_project/Network/StaticGateway.interface.yaml
@@ -1,15 +1,7 @@
 description: >
-    This interface defines network static routes
+    This interface defines network static gateway
 
 properties:
-    - name: Destination
-      type: string
-      description: >
-          The value of this property shall be a destination IP address, only
-          destination network IP address allowed. it does not allow hostname.
-      errors:
-          - xyz.openbmc_project.Common.Error.NotAllowed
-
     - name: Gateway
       type: string
       description: >
diff --git a/yaml/xyz/openbmc_project/Network/StaticRoute/Create.interface.yaml b/yaml/xyz/openbmc_project/Network/StaticGateway/Create.interface.yaml
similarity index 67%
rename from yaml/xyz/openbmc_project/Network/StaticRoute/Create.interface.yaml
rename to yaml/xyz/openbmc_project/Network/StaticGateway/Create.interface.yaml
index e03b411..010e12b 100644
--- a/yaml/xyz/openbmc_project/Network/StaticRoute/Create.interface.yaml
+++ b/yaml/xyz/openbmc_project/Network/StaticGateway/Create.interface.yaml
@@ -1,17 +1,13 @@
 description: >
 methods:
-    - name: StaticRoute
+    - name: StaticGateway
       description: >
-          Create a static route entry.
+          Create a static gateway entry.
       parameters:
-          - name: Destination
-            type: string
-            description: >
-                Destination Address.
           - name: Gateway
             type: string
             description: >
-                Next hop address to reach destination address
+                Static gateway address
           - name: PrefixLength
             type: size
             description: >
@@ -24,6 +20,6 @@
           - name: Path
             type: object_path
             description: >
-                The path for the created static route object.
+                The path for the created static gateway object.
       errors:
           - xyz.openbmc_project.Common.Error.InvalidArgument